From b2ef4856b02368fd9e41dda0e884ee595162954b Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sat, 31 Mar 2007 16:43:41 +0000 Subject: [PATCH] set core->saved_proj_tiles to NULL after unrefing them. 2007-03-31 Michael Natterer * app/paint/gimppaintcore.c (gimp_paint_core_start): set core->saved_proj_tiles to NULL after unrefing them. * app/paint/gimppaintcore.h: whitespace fixes. svn path=/trunk/; revision=22210 --- ChangeLog | 7 +++++++ app/paint/gimppaintcore.c | 5 +++++ app/paint/gimppaintcore.h | 6 +++--- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6ff5a7f8cc..4817c880f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-03-31 Michael Natterer + + * app/paint/gimppaintcore.c (gimp_paint_core_start): set + core->saved_proj_tiles to NULL after unrefing them. + + * app/paint/gimppaintcore.h: whitespace fixes. + 2007-03-31 Michael Natterer * app/tools/gimprectangleoptions.[ch]: made the diff --git a/app/paint/gimppaintcore.c b/app/paint/gimppaintcore.c index 9b3d33620d..352879e4dd 100644 --- a/app/paint/gimppaintcore.c +++ b/app/paint/gimppaintcore.c @@ -286,6 +286,9 @@ gimp_paint_core_real_push_undo (GimpPaintCore *core, NULL); } + +/* public functions */ + void gimp_paint_core_paint (GimpPaintCore *core, GimpDrawable *drawable, @@ -362,6 +365,8 @@ gimp_paint_core_start (GimpPaintCore *core, if (core->saved_proj_tiles) tile_manager_unref (core->saved_proj_tiles); + core->saved_proj_tiles = NULL; + if (core->use_saved_proj) { GimpPickable *pickable; diff --git a/app/paint/gimppaintcore.h b/app/paint/gimppaintcore.h index 0ece5c4bd5..7611107ebf 100644 --- a/app/paint/gimppaintcore.h +++ b/app/paint/gimppaintcore.h @@ -155,14 +155,14 @@ TempBuf * gimp_paint_core_get_orig_proj (GimpPaintCore *core, void gimp_paint_core_paste (GimpPaintCore *core, PixelRegion *paint_maskPR, GimpDrawable *drawable, - gdouble paint_opacity, - gdouble image_opacity, + gdouble paint_opacity, + gdouble image_opacity, GimpLayerModeEffects paint_mode, GimpPaintApplicationMode mode); void gimp_paint_core_replace (GimpPaintCore *core, PixelRegion *paint_maskPR, GimpDrawable *drawable, - gdouble paint_opacity, + gdouble paint_opacity, gdouble image_opacity, GimpPaintApplicationMode mode);