From f286a70cfe871c3a53c7d0cc3dae3f8c9c3389a2 Mon Sep 17 00:00:00 2001 From: Eric Koegel Date: Sun, 18 Dec 2011 21:05:51 +0300 Subject: [PATCH] Selection-box drawn outside of image because box_width < 0.0, return instead of drawing selection --- 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 ( -- 1.7.5.4