Commit 387247a0 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

convert empty strings in canvas properties to '0'

parent a2faba30
......@@ -469,17 +469,17 @@
hide_name = +document.getElementsByName('hide-name')[0].checked;
pdgui.pdsend([pd_object_callback, 'donecanvasdialog',
get_input('x-scale'),
get_input('y-scale'),
+get_input('x-scale'),
+get_input('y-scale'),
(gop + 2 * hide_name),
get_input('x1'),
get_input('y1'),
get_input('x2'),
get_input('y2'),
get_input('x-pix'),
get_input('y-pix'),
get_input('x-margin'),
get_input('y-margin'),
+get_input('x1'),
+get_input('y1'),
+get_input('x2'),
+get_input('y2'),
+get_input('x-pix'),
+get_input('y-pix'),
+get_input('x-margin'),
+get_input('y-margin'),
].join(' '));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment