aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/gui_utils.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-10-20 02:34:41 +0000
committerGuy Harris <guy@alum.mit.edu>2007-10-20 02:34:41 +0000
commit0ea7d1372fc0c859d471095de401fb6fa39edb07 (patch)
treee9fe73a8ce255d8f42799c830b23023632b8c859 /gtk/gui_utils.c
parent721e353447c4e900064beedfc6aad790f64ee712 (diff)
Silently ignore bogus geometry subkeys, just as we silently ignore other
bogus entries in the recent file. This fixes bug 1925. svn path=/trunk/; revision=23233
Diffstat (limited to 'gtk/gui_utils.c')
-rw-r--r--gtk/gui_utils.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/gui_utils.c b/gtk/gui_utils.c
index 11645a6fe3..e7b7cbc647 100644
--- a/gtk/gui_utils.c
+++ b/gtk/gui_utils.c
@@ -496,7 +496,13 @@ window_geom_recent_read_pair(const char *name, const char *key, const char *valu
}
geom.set_maximized = TRUE;
} else {
- g_assert_not_reached();
+ /*
+ * Silently ignore the bogus key. We shouldn't abort here,
+ * as this could be due to a corrupt recent file.
+ *
+ * XXX - should we print a message about this?
+ */
+ return;
}
/* save / replace geometry in hashtable */