[gimp] app: make sure the projection buffer exists in gimp_projection_pickable_flush()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: make sure the projection buffer exists in gimp_projection_pickable_flush()
- Date: Tue, 18 Dec 2012 18:35:18 +0000 (UTC)
commit 766999ce3f62bbd17bd2de08e20976e30bd560a4
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]