From 46ce18f994dc354fa9e274bdad8d76d50cc6c9be Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sat, 28 Apr 2012 11:40:06 +0200 Subject: [PATCH] app: don't disable perspective clone on indexed drawables any longer --- app/paint/gimpperspectiveclone.c | 33 -------------------------------- 1 file changed, 33 deletions(-) diff --git a/app/paint/gimpperspectiveclone.c b/app/paint/gimpperspectiveclone.c index 9f949b5eff..e0321c09ec 100644 --- a/app/paint/gimpperspectiveclone.c +++ b/app/paint/gimpperspectiveclone.c @@ -44,11 +44,6 @@ #include "gimp-intl.h" -static gboolean gimp_perspective_clone_start (GimpPaintCore *paint_core, - GimpDrawable *drawable, - GimpPaintOptions *paint_options, - const GimpCoords *coords, - GError **error); static void gimp_perspective_clone_paint (GimpPaintCore *paint_core, GimpDrawable *drawable, GimpPaintOptions *paint_options, @@ -99,7 +94,6 @@ gimp_perspective_clone_class_init (GimpPerspectiveCloneClass *klass) GimpPaintCoreClass *paint_core_class = GIMP_PAINT_CORE_CLASS (klass); GimpSourceCoreClass *source_core_class = GIMP_SOURCE_CORE_CLASS (klass); - paint_core_class->start = gimp_perspective_clone_start; paint_core_class->paint = gimp_perspective_clone_paint; source_core_class->get_source = gimp_perspective_clone_get_source; @@ -118,33 +112,6 @@ gimp_perspective_clone_init (GimpPerspectiveClone *clone) gimp_matrix3_identity (&clone->transform_inv); } -static gboolean -gimp_perspective_clone_start (GimpPaintCore *paint_core, - GimpDrawable *drawable, - GimpPaintOptions *paint_options, - const GimpCoords *coords, - GError **error) -{ - GimpSourceCore *source_core = GIMP_SOURCE_CORE (paint_core); - - if (! GIMP_PAINT_CORE_CLASS (parent_class)->start (paint_core, drawable, - paint_options, coords, - error)) - { - return FALSE; - } - - if (! source_core->set_source && gimp_drawable_is_indexed (drawable)) - { - g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED, - _("Perspective Clone does not operate on " - "indexed layers.")); - return FALSE; - } - - return TRUE; -} - static void gimp_perspective_clone_paint (GimpPaintCore *paint_core, GimpDrawable *drawable,