[gnome-photos] tool-crop: Fix off-by-one error for images with a constrained crop



commit a7e6db26db3487461d8dcb64e8a90f01c8d5adb0
Author: Umang Jain <mailumangjain gmail com>
Date:   Fri Feb 12 14:32:23 2016 +0530

    tool-crop: Fix off-by-one error for images with a constrained crop
    
    Fall out from a9bc17bff12a51489a034c9f2faa8da5ab031af9
    
    https://bugzilla.gnome.org/show_bug.cgi?id=758227

 src/photos-tool-crop.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-tool-crop.c b/src/photos-tool-crop.c
index df6418e..41b1b2f 100644
--- a/src/photos-tool-crop.c
+++ b/src/photos-tool-crop.c
@@ -855,7 +855,7 @@ photos_tool_crop_set_active (PhotosToolCrop *self, gint active)
     }
   else if (active > 0)
     {
-      self->list_box_active = active;
+      self->list_box_active = active - 1;
       gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (self->lock_button), TRUE);
     }
   else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]