Bug 727762 - Undo- and redobutton in Undo History Dialog (gimpundoeditor)...

...don't work

Make action_data_get_display() return the right display also if the
action callback's user_data is a GimpImageEditor (GimpUndoEditor in
this case). The undo and redo actions now require a display, not only
an image, so this broke as a side effect.
This commit is contained in:
Michael Natterer 2014-04-09 01:21:56 +02:00
parent 88e4d7e468
commit d43022e5c4
1 changed files with 2 additions and 0 deletions

View File

@ -395,6 +395,8 @@ action_data_get_display (gpointer data)
context = gimp_dock_get_context ((GimpDock *) data);
else if (GIMP_IS_DOCK_WINDOW (data))
context = gimp_dock_window_get_context (((GimpDockWindow *) data));
else if (GIMP_IS_IMAGE_EDITOR (data))
context = ((GimpImageEditor *) data)->context;
else if (GIMP_IS_NAVIGATION_EDITOR (data))
context = ((GimpNavigationEditor *) data)->context;