fixed preview of closed paths.

2003-09-30  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimppreviewrenderervectors.c: fixed preview of
	closed paths.
This commit is contained in:
Sven Neumann 2003-09-30 14:18:29 +00:00 committed by Sven Neumann
parent 1359a914db
commit 66134f9afc
3 changed files with 7 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2003-09-30 Sven Neumann <sven@gimp.org>
* app/widgets/gimppreviewrenderervectors.c: fixed preview of
closed paths.
2003-09-30 Sven Neumann <sven@gimp.org>
* app/widgets/gimppreviewrenderer.c

View File

@ -136,7 +136,7 @@ gimp_preview_renderer_vectors_draw (GimpPreviewRenderer *renderer,
if (coordinates->len > 0)
{
points = g_new (GdkPoint, coordinates->len + (closed ? 1 : 0));
points = g_new (GdkPoint, coordinates->len);
for (i = 0; i < coordinates->len; i++)
{
@ -148,9 +148,6 @@ gimp_preview_renderer_vectors_draw (GimpPreviewRenderer *renderer,
points[i].y = rect.y + ROUND (coords->y / yscale);
}
if (closed)
g_array_append_val (coordinates, points[0]);
gdk_draw_lines (window, widget->style->black_gc,
points, coordinates->len);

View File

@ -136,7 +136,7 @@ gimp_preview_renderer_vectors_draw (GimpPreviewRenderer *renderer,
if (coordinates->len > 0)
{
points = g_new (GdkPoint, coordinates->len + (closed ? 1 : 0));
points = g_new (GdkPoint, coordinates->len);
for (i = 0; i < coordinates->len; i++)
{
@ -148,9 +148,6 @@ gimp_preview_renderer_vectors_draw (GimpPreviewRenderer *renderer,
points[i].y = rect.y + ROUND (coords->y / yscale);
}
if (closed)
g_array_append_val (coordinates, points[0]);
gdk_draw_lines (window, widget->style->black_gc,
points, coordinates->len);