[gimp] app: gimpdrawable-stroke.c: don't try to fill a dot or a line



commit f7646fd171dfd322a1e2a071e2220d1248b443f0
Author: Michael Natterer <mitch gimp org>
Date:   Sun Apr 10 22:43:03 2011 +0200

    app: gimpdrawable-stroke.c: don't try to fill a dot or a line

 app/core/gimpdrawable-stroke.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpdrawable-stroke.c b/app/core/gimpdrawable-stroke.c
index 3d3ebe6..eff1d8f 100644
--- a/app/core/gimpdrawable-stroke.c
+++ b/app/core/gimpdrawable-stroke.c
@@ -257,7 +257,7 @@ gimp_drawable_render_vectors (GimpDrawable  *drawable,
 
   bezier = gimp_vectors_get_bezier (vectors);
 
-  if (bezier && bezier->num_data > 1)
+  if (bezier && (do_stroke ? bezier->num_data >= 2 : bezier->num_data > 4))
     {
       GimpScanConvert *scan_convert;
 
@@ -351,7 +351,7 @@ gimp_drawable_stroke_scan_convert (GimpDrawable    *drawable,
 
   gimp_scan_convert_render (scan_convert, mask,
                             x + off_x, y + off_y,
-                            gimp_fill_options_get_antialias (GIMP_FILL_OPTIONS (options)));
+                            gimp_fill_options_get_antialias (options));
 
   bytes = gimp_drawable_bytes_with_alpha (drawable);
 



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