From d43022e5c4ee630f26f12216551452978de454df Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Wed, 9 Apr 2014 01:21:56 +0200 Subject: [PATCH] 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. --- app/actions/actions.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/actions/actions.c b/app/actions/actions.c index b9b87cbcba..0dfd921199 100644 --- a/app/actions/actions.c +++ b/app/actions/actions.c @@ -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;