changeset 1636:157ef2c48fa2

do not show wide frame in single image mode it partially fixes https://sourceforge.net/tracker/?func=detail&aid=2797348&group_id=222125&atid=1054683
author nadvornik
date Sun, 07 Jun 2009 10:11:05 +0000
parents 5ad450d67878
children cc3ccf3c7c27
files src/layout_image.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/layout_image.c	Sat Jun 06 22:51:55 2009 +0000
+++ b/src/layout_image.c	Sun Jun 07 10:11:05 2009 +0000
@@ -1671,7 +1671,7 @@
 
 static void layout_image_setup_split_common(LayoutWindow *lw, gint n)
 {
-	gboolean frame = (n == 1) ? (!lw->options.tools_float && !lw->options.tools_hidden) : 1;
+	gboolean frame = (n > 1) || (!lw->options.tools_float && !lw->options.tools_hidden);
 	gint i;
 
 	for (i = 0; i < n; i++)
@@ -1682,7 +1682,7 @@
 
 			layout_image_new(lw, i);
 			image_set_frame(lw->split_images[i], frame);
-			image_set_selectable(lw->split_images[i], 1);
+			image_set_selectable(lw->split_images[i], (n > 1));
 			
 			if (lw->image)
 				{
@@ -1725,7 +1725,7 @@
 		else
 			{
 			image_set_frame(lw->split_images[i], frame);
-			image_set_selectable(lw->split_images[i], 1);
+			image_set_selectable(lw->split_images[i], (n > 1));
 			}
 
 	for (i = n; i < MAX_SPLIT_IMAGES; i++)