Update of /cvsroot/ufraw/ufraw
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv15190

Modified Files:
        ufraw_preview.c 
Log Message:
Fix a small rounding issue in zoom-in/out. Patch by Frank van Maarseveen.


Index: ufraw_preview.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_preview.c,v
retrieving revision 1.306
retrieving revision 1.307
diff -u -d -r1.306 -r1.307
--- ufraw_preview.c     11 Nov 2009 02:09:23 -0000      1.306
+++ ufraw_preview.c     11 Nov 2009 02:20:57 -0000      1.307
@@ -2027,7 +2027,7 @@
 
     double zoom = CFG->Zoom;
     if (zoom >= 100.0) {
-       zoom = (floor(zoom/100.0) + 1) * 100.0;
+       zoom = (floor((zoom+0.5) / 100.0) + 1) * 100.0;
     } else {
        int scale = zoom_to_scale(zoom);
        if (scale==0) {
@@ -2049,7 +2049,7 @@
 
     double zoom = CFG->Zoom;
     if (zoom > 100.0) {
-       zoom = (ceil(zoom / 100.0) - 1) * 100.0;
+       zoom = (ceil((zoom-0.5) / 100.0) - 1) * 100.0;
     } else {
        int scale = zoom_to_scale(zoom);
        if (scale==0) {


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
ufraw-cvs mailing list
ufraw-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs

Reply via email to