[gimp] Bug 623186 - GIF save plugin chokes on layers larger than canvas
- From: Sven Neumann <neo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 623186 - GIF save plugin chokes on layers larger than canvas
- Date: Wed, 7 Jul 2010 17:24:40 +0000 (UTC)
commit 999f00bd27b16a48ec94a9744d98fc6f1c68713a
Author: Sven Neumann <sven gimp org>
Date: Wed Jul 7 19:25:14 2010 +0200
Bug 623186 - GIF save plugin chokes on layers larger than canvas
Move the call to gimp_ui_init() before the sanity checks so that
GTK+ is properly initialized before the dialog is shown.
plug-ins/common/file-gif-save.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/file-gif-save.c b/plug-ins/common/file-gif-save.c
index 779ad89..78a492c 100644
--- a/plug-ins/common/file-gif-save.c
+++ b/plug-ins/common/file-gif-save.c
@@ -216,6 +216,9 @@ run (const gchar *name,
drawable_ID = param[2].data.d_int32;
filename = param[3].data.d_string;
+ if (run_mode == GIMP_RUN_INTERACTIVE)
+ gimp_ui_init (PLUG_IN_BINARY, FALSE);
+
status = sanity_check (filename, image_ID, &error);
/* Get the export options */
@@ -224,8 +227,6 @@ run (const gchar *name,
switch (run_mode)
{
case GIMP_RUN_INTERACTIVE:
- gimp_ui_init (PLUG_IN_BINARY, FALSE);
-
/* Possibly retrieve data */
gimp_get_data (SAVE_PROC, &gsvals);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]