[Xfce4-commits] <ristretto:master> Selection-box drawn outside of image because box_width < 0.0, return instead of drawing selection

Stephan Arts noreply at xfce.org
Sun Dec 18 22:20:01 CET 2011


Updating branch refs/heads/master
         to d3680c14335f023a19efd20edac22044d600191f (commit)
       from 2c76535a89c4a6fde0ba43031eaabdcefbbe1d22 (commit)

commit d3680c14335f023a19efd20edac22044d600191f
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Sun Dec 18 21:05:51 2011 +0300

    Selection-box drawn outside of image because box_width < 0.0, return instead of drawing selection
    
    Signed-off-by: Stephan Arts <stephan at xfce.org>

 src/image_viewer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/image_viewer.c b/src/image_viewer.c
index 3e77271..6c7a6da 100644
--- a/src/image_viewer.c
+++ b/src/image_viewer.c
@@ -1189,11 +1189,11 @@ paint_selection_box (
      */
     if (box_width < 0.0)
     {
-        box_width = 0.0;
+        return;
     }
     if (box_height < 0.0)
     {
-        box_height = 0.0;
+        return;
     }
 
     cairo_rectangle (


More information about the Xfce4-commits mailing list