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.
This commit is contained in:
Michael Natterer 2016-11-10 01:06:59 +01:00
parent a5efd8a5cc
commit e3115f1565
1 changed files with 2 additions and 1 deletions

View File

@ -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);