comparison src/layout_image.c @ 1273:1ac2baeb8dc9

fixed switch from single to split image
author nadvornik
date Sun, 01 Feb 2009 18:27:42 +0000
parents e0e12512cde2
children 8b89e3ff286b
comparison
equal deleted inserted replaced
1272:e0e12512cde2 1273:1ac2baeb8dc9
1656 1656
1657 if (!lw->image || lw->active_split_image < 0 || lw->active_split_image >= n) 1657 if (!lw->image || lw->active_split_image < 0 || lw->active_split_image >= n)
1658 { 1658 {
1659 layout_image_activate(lw, 0); 1659 layout_image_activate(lw, 0);
1660 } 1660 }
1661 1661 else
1662 {
1663 /* this will draw the frame around selected image (image_select)
1664 on switch from single to split images */
1665 layout_image_activate(lw, lw->active_split_image);
1666 }
1662 } 1667 }
1663 1668
1664 GtkWidget *layout_image_setup_split_none(LayoutWindow *lw) 1669 GtkWidget *layout_image_setup_split_none(LayoutWindow *lw)
1665 { 1670 {
1666 lw->split_mode = SPLIT_NONE; 1671 lw->split_mode = SPLIT_NONE;