Skip to content

Commit

Permalink
layout_image_drag_cb(): optimize when connected scrolling is unset.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed Jun 28, 2008
1 parent ed00275 commit f40224f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/layout_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -1667,9 +1667,11 @@ static void layout_image_drag_cb(ImageWindow *imd, GdkEventButton *event, gdoubl
gint i;
LayoutWindow *lw = data;

if (!lw->connect_scroll) return;

for (i = 0; i < MAX_SPLIT_IMAGES; i++)
{
if (lw->split_images[i] && lw->split_images[i] != imd && lw->connect_scroll)
if (lw->split_images[i] && lw->split_images[i] != imd)
{
gdouble sx, sy;

Expand Down

0 comments on commit f40224f

Please sign in to comment.