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

This commit is contained in:
Michael Natterer 2011-04-10 22:43:03 +02:00
parent 0f91a11b75
commit f7646fd171
1 changed files with 2 additions and 2 deletions

View File

@ -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);