Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_scrollpane.c 


Log Message:
Fix a double->int conversion caused by missing parentheses.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_scrollpane.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- ewl_scrollpane.c    6 Apr 2004 04:28:44 -0000       1.34
+++ ewl_scrollpane.c    6 Apr 2004 05:28:04 -0000       1.35
@@ -316,10 +316,11 @@
         * Adjust the scrollbar internal stepping to match the contents.
         */
        if (content_w < b_width) {
+               double val;
+
+               val = ewl_scrollbar_get_value(EWL_SCROLLBAR(s->hscrollbar));
                step = (double)content_w / (double)b_width;
-               b_width = (int)ewl_scrollbar_get_value(EWL_SCROLLBAR(
-                                       s->hscrollbar)) *
-                       (double)(b_width - content_w);
+               b_width = (int)(val * (double)(b_width - content_w));
        }
        else {
                step = 1.0;
@@ -329,10 +330,11 @@
        ewl_scrollbar_set_step(EWL_SCROLLBAR(s->hscrollbar), step);
 
        if (content_h < b_height) {
+               double val;
+
+               val = ewl_scrollbar_get_value(EWL_SCROLLBAR(s->vscrollbar));
                step = (double)content_h / (double)b_height;
-               b_height= (int)(ewl_scrollbar_get_value(EWL_SCROLLBAR(
-                                               s->vscrollbar)) *
-                               (double)(b_height - content_h));
+               b_height= (int)(val * (double)(b_height - content_h));
        }
        else {
                step = 1.0;




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to