[gimp/goat-invasion: 69/608] app: don't need an attached item for applying an op to tiles/buffers



commit fe55e6bcb8c7a6132ceb8911b4a645af0c10f810
Author: Michael Natterer <mitch gimp org>
Date:   Fri Mar 16 11:56:21 2012 +0100

    app: don't need an attached item for applying an op to tiles/buffers

 app/core/gimpdrawable-operation.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpdrawable-operation.c b/app/core/gimpdrawable-operation.c
index b4befa0..aae4ec5 100644
--- a/app/core/gimpdrawable-operation.c
+++ b/app/core/gimpdrawable-operation.c
@@ -137,7 +137,6 @@ gimp_drawable_apply_operation_to_buffer (GimpDrawable *drawable,
   GeglRectangle rect;
 
   g_return_if_fail (GIMP_IS_DRAWABLE (drawable));
-  g_return_if_fail (gimp_item_is_attached (GIMP_ITEM (drawable)));
   g_return_if_fail (progress == NULL || GIMP_IS_PROGRESS (progress));
   g_return_if_fail (progress == NULL || undo_desc != NULL);
   g_return_if_fail (GEGL_IS_NODE (operation));
@@ -171,7 +170,6 @@ gimp_drawable_apply_operation_to_tiles (GimpDrawable *drawable,
   GeglBuffer *dest_buffer;
 
   g_return_if_fail (GIMP_IS_DRAWABLE (drawable));
-  g_return_if_fail (gimp_item_is_attached (GIMP_ITEM (drawable)));
   g_return_if_fail (progress == NULL || GIMP_IS_PROGRESS (progress));
   g_return_if_fail (progress == NULL || undo_desc != NULL);
   g_return_if_fail (GEGL_IS_NODE (operation));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]