summaryrefslogtreecommitdiff
path: root/colormachine
diff options
context:
space:
mode:
Diffstat (limited to 'colormachine')
-rw-r--r--colormachine/init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/colormachine/init.lua b/colormachine/init.lua
index 912be13..dceff54 100644
--- a/colormachine/init.lua
+++ b/colormachine/init.lua
@@ -1139,6 +1139,9 @@ colormachine.blocktype_menu = function( meta, new_color, page )
local per_line = 13;
local anz_lines = 3;
local per_page = anz_lines * per_line;
+ if( not( page )) then
+ page = 1;
+ end
local start_at_offset = per_page * page;
new_color = colormachine.decode_color_name( meta, new_color );