Bug fix #251: Crop simulation
authorColin Clark <colin.clark@cclark.uk>
Sat, 18 Aug 2018 10:00:35 +0000 (11:00 +0100)
committerColin Clark <colin.clark@cclark.uk>
Sat, 18 Aug 2018 10:00:35 +0000 (11:00 +0100)
https://github.com/BestImageViewer/geeqie/issues/251

If draw rectangle is not selected, return null.

src/remote.c

index f5c58e5..58d4ec3 100644 (file)
@@ -697,6 +697,7 @@ static void gr_rectangle(const gchar *text, GIOChannel *channel, gpointer data)
        LayoutWindow *lw = NULL;
        gint x1, y1, x2, y2;
 
+       if (!options->draw_rectangle) return;
        if (!layout_valid(&lw_id)) return;
 
        pr = (PixbufRenderer*)lw_id->image->pr;