Skip to content

Commit

Permalink
Partial fix #488: Split view with sidecars
Browse files Browse the repository at this point in the history
#488

Bug 2: fix split view when images with sidecars are involved
  • Loading branch information
caclark committed May 30, 2017
1 parent 50f5ef3 commit 521f209
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/layout_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -2000,16 +2000,19 @@ static void layout_image_setup_split_common(LayoutWindow *lw, gint n)
GList *work = g_list_last(layout_selection_list(lw));
gint j = 0;

if (work) work = work->prev;

while (work && j < i)
{
FileData *fd = work->data;
work = work->prev;

j++;
if (!fd || !*fd->path) continue;
if (!fd || !*fd->path || fd->parent ||
fd == lw->split_images[0]->image_fd)
{
continue;
}
img_fd = fd;

j++;
}
}

Expand Down

0 comments on commit 521f209

Please sign in to comment.