[gimp] Bug 774155 - gimp crashes on pressing OK in grid configuration
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 774155 - gimp crashes on pressing OK in grid configuration
- Date: Thu, 10 Nov 2016 00:13:57 +0000 (UTC)
commit e3115f1565c1b3c17df6daa8a3649770898e2a5c
Author: Michael Natterer <mitch gimp org>
Date: Thu Nov 10 01:06:59 2016 +0100
Bug 774155 - gimp crashes on pressing OK in grid configuration
Pass the right user_data to grid_dialog_response().
Unrelated: call gimp_image_flush() so the menus get updated after
confirming the new grid.
app/dialogs/grid-dialog.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/dialogs/grid-dialog.c b/app/dialogs/grid-dialog.c
index bbd07e0..8bbb5d5 100644
--- a/app/dialogs/grid-dialog.c
+++ b/app/dialogs/grid-dialog.c
@@ -117,7 +117,7 @@ grid_dialog_new (GimpImage *image,
g_signal_connect (dialog, "response",
G_CALLBACK (grid_dialog_response),
- dialog);
+ private);
gimp_image_get_resolution (image, &xres, &yres);
@@ -160,6 +160,7 @@ grid_dialog_response (GtkWidget *dialog,
{
gimp_image_undo_push_image_grid (private->image, _("Grid"),
private->grid_backup);
+ gimp_image_flush (private->image);
}
gtk_widget_destroy (dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]