From e253f4899194af7d561ad0f74fa7b8d532bbd41e Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Wed, 21 Oct 2009 12:31:58 +0000 Subject: [PATCH] Minor fix for custom spinner functions git-svn-id: http://svg-edit.googlecode.com/svn/trunk@856 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index b715f1bc..83d488d1 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -1458,6 +1458,7 @@ function svg_edit_setup() { var orig_val = elem.value-0; var sug_val = orig_val + step; var increasing = sug_val >= orig_val; + if(step === 0) return orig_val; if(orig_val >= 24) { if(increasing) { @@ -1479,6 +1480,7 @@ function svg_edit_setup() { function stepZoom(elem, step) { var orig_val = elem.value-0; var sug_val = orig_val + step; + if(step === 0) return orig_val; if(orig_val >= 100) { return sug_val;