Minor fix for custom spinner functions

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@856 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-10-21 12:31:58 +00:00
parent e3fb3b0ac8
commit e253f48991
1 changed files with 2 additions and 0 deletions

View File

@ -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;