mirror of https://github.com/GNOME/gimp.git
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:
parent
a5efd8a5cc
commit
e3115f1565
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue