From 387247a0100ca3cf3ae3ab42e45a2253a0a48693 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Fri, 26 Jun 2015 18:03:32 -0400 Subject: [PATCH] convert empty strings in canvas properties to '0' --- pd/nw/dialog_canvas.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pd/nw/dialog_canvas.html b/pd/nw/dialog_canvas.html index df61db147..b90502fa1 100644 --- a/pd/nw/dialog_canvas.html +++ b/pd/nw/dialog_canvas.html @@ -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(' ')); } -- GitLab