From 5439b4dc739ea8ada161d6de71af1e942d0ddb8b Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Sun, 16 Mar 2014 03:32:12 +0000 Subject: [PATCH] accept float values in case ever any added to menu git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2732 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 39f377a3..e53e0fc1 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -3275,7 +3275,7 @@ TO-DOS if (val) { zoomChanged(window, val); } else { - changeZoom({value: parseInt(item.text(), 10)}); + changeZoom({value: parseFloat(item.text())}); } }, true); @@ -4948,7 +4948,7 @@ TO-DOS editor.openPrep(function(ok) { if (!ok) {return;} svgCanvas.clear(); - if (f.files.length==1) { + if (f.files.length === 1) { $.process_cancel(uiStrings.notification.loadingImage); var reader = new FileReader(); reader.onloadend = function(e) {