[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/libs/libksane/libksane
From:       Kåre Särs <kare.sars () kolumbus ! fi>
Date:       2008-04-06 18:52:47
Message-ID: 1207507967.557388.10297.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 794162 by sars:

fix rounding errors if slider values are negative

 M  +2 -1      sane_option.cpp  


--- trunk/extragear/libs/libksane/libksane/sane_option.cpp #794161:794162
@@ -813,7 +813,8 @@
     switch (type)
     {
         case SW_SLIDER:
-            sliderChanged((int)(value+0.5));
+            if (value >=0) sliderChanged((int)(value+0.5));
+            else sliderChanged((int)(value-0.5));
             if (lslider != 0) {
                 lslider->setValue((int)value);
             }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic