changeset 1403:9274b3b4eaad

fixed crash with certain layout configurations
author nadvornik
date Sun, 08 Mar 2009 21:12:45 +0000
parents 611c25ef73f4
children de06d83e1adc
files src/layout.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/layout.c	Sun Mar 08 20:49:48 2009 +0000
+++ b/src/layout.c	Sun Mar 08 21:12:45 2009 +0000
@@ -1718,6 +1718,8 @@
 	if (dir_fd) file_data_unregister_real_time_monitor(dir_fd);
 	lw->dir_fd = NULL;
 
+	layout_geometry_get_dividers(lw, &lw->options.main_window.hdivider_pos, &lw->options.main_window.vdivider_pos);
+
 	/* lw->image is preserved together with lw->utility_box */
 	if (lw->utility_box)
 		{
@@ -1727,8 +1729,6 @@
 		gtk_container_remove(GTK_CONTAINER(lw->utility_box->parent), lw->utility_box);
 		}
 
-	layout_geometry_get_dividers(lw, &lw->options.main_window.hdivider_pos, &lw->options.main_window.vdivider_pos);
-
 	/* clear it all */
 
 	lw->h_pane = NULL;