# HG changeset patch # User zas_ # Date 1227394491 0 # Node ID 52ce0263cb7cbb3947eb62c3b65799b908d2427a # Parent 08ef8c60572332ccf71f62096e67a23e0ec80043 Use the last selected images for the splitted views. Ie. when 5 images are selected, the last one is displayed, split quad while open images 5,4,3,2. It seems better to me. diff -r 08ef8c605723 -r 52ce0263cb7c src/layout_image.c --- a/src/layout_image.c Sat Nov 22 22:43:18 2008 +0000 +++ b/src/layout_image.c Sat Nov 22 22:54:51 2008 +0000 @@ -1602,16 +1602,18 @@ layout_image_new(lw, i); image_set_frame(lw->split_images[i], frame); image_set_selectable(lw->split_images[i], 1); - + if (layout_selection_count(lw, 0) > 1) { - GList *work = layout_selection_list(lw); + 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->next; + work = work->prev; j++; if (!fd || !*fd->path) continue;