[gimp] plug-ins: imagemap, init map type to the default type set in preferences
- From: Mikael Magnusson <mikachu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: imagemap, init map type to the default type set in preferences
- Date: Wed, 23 Feb 2011 22:15:56 +0000 (UTC)
commit 203440521a33ea26ae89987498931a841bd403f9
Author: Mikael Magnusson <mikachu src gnome org>
Date: Wed Feb 23 23:14:33 2011 +0100
plug-ins: imagemap, init map type to the default type set in preferences
plug-ins/imagemap/imap_main.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/imagemap/imap_main.c b/plug-ins/imagemap/imap_main.c
index 6eac6c0..f4a2ef9 100644
--- a/plug-ins/imagemap/imap_main.c
+++ b/plug-ins/imagemap/imap_main.c
@@ -611,7 +611,7 @@ clear_map_info(void)
g_strreplace(&_map_info.default_url, "");
g_strreplace(&_map_info.description, "");
- _map_info.map_format = CSIM;
+ _map_info.map_format = _preferences.default_map_type;
_map_info.show_gray = FALSE;
}
@@ -1292,12 +1292,13 @@ dialog(GimpDrawable *drawable)
_statusbar = make_statusbar(main_vbox, dlg);
statusbar_set_zoom(_statusbar, 1);
- clear_map_info();
-
gtk_widget_show(dlg);
_mru = mru_create();
init_preferences();
+
+ clear_map_info();
+
if (!mru_empty(_mru))
menu_build_mru_items(_mru);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]