mirror of https://github.com/GNOME/gimp.git
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:
parent
1359a914db
commit
66134f9afc
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue