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