[gimp] app: clean up paint core cleanup
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: clean up paint core cleanup
- Date: Sun, 6 Feb 2011 10:31:28 +0000 (UTC)
commit 16b020fc42243e84ca4ba3c3e1e95169924088dd
Author: Michael Natterer <mitch gimp org>
Date: Sun Feb 6 11:22:23 2011 +0100
app: clean up paint core cleanup
app/paint/gimppaintcore.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/app/paint/gimppaintcore.c b/app/paint/gimppaintcore.c
index 6a89266..5f75db1 100644
--- a/app/paint/gimppaintcore.c
+++ b/app/paint/gimppaintcore.c
@@ -1263,14 +1263,11 @@ gimp_paint_core_smooth_coords (GimpPaintCore *core,
GimpPaintOptions *paint_options,
GimpCoords *coords)
{
-
GimpSmoothingOptions *smoothing_options = paint_options->smoothing_options;
GArray *history = core->stroke_buffer;
- g_return_if_fail(GIMP_IS_PAINT_CORE(core));
-
if (core->stroke_buffer == NULL)
- return; /*Paint core has not initalized yet*/
+ return; /* Paint core has not initalized yet */
if (smoothing_options->use_smoothing &&
smoothing_options->smoothing_quality > 0)
@@ -1286,7 +1283,7 @@ gimp_paint_core_smooth_coords (GimpPaintCore *core,
g_array_append_val (history, *coords);
if (history->len < 2)
- return; /*Just dont bother, nothing to do*/
+ return; /* Just dont bother, nothing to do */
coords->x = coords->y = 0.0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]