[gimp/soc-2011-seamless-clone2] app: make sure the projection buffer exists in gimp_projection_pickable_flush()
- From: Clayton Walker <claytonw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2011-seamless-clone2] app: make sure the projection buffer exists in gimp_projection_pickable_flush()
- Date: Wed, 8 May 2013 14:53:06 +0000 (UTC)
commit 12839f663365a82e5b0667ece6d934b225316303
Author: Michael Natterer <mitch gimp org>
Date: Tue Dec 18 19:30:33 2012 +0100
app: make sure the projection buffer exists in gimp_projection_pickable_flush()
This does not make any difference for normal images, but for images
without display (like when creating thumbnails, or for GUI-less
scripting), this is now needed because we create the initial
projection much more lazily, and got an empty projection.
app/core/gimpprojection.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpprojection.c b/app/core/gimpprojection.c
index eb97f20..2e55392 100644
--- a/app/core/gimpprojection.c
+++ b/app/core/gimpprojection.c
@@ -229,6 +229,9 @@ gimp_projection_pickable_flush (GimpPickable *pickable)
{
GimpProjection *proj = GIMP_PROJECTION (pickable);
+ /* create the buffer if it doesn't exist */
+ gimp_projection_get_buffer (pickable);
+
gimp_projection_finish_draw (proj);
gimp_projection_flush_now (proj);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]