Don't lose the last segment of closed paths when exporting...
2003-09-12 Simon Budig <simon@gimp.org> * app/vectors/gimpvectors-export.c: Don't lose the last segment of closed paths when exporting...
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2003-09-12 Simon Budig <simon@gimp.org>
|
||||
|
||||
* app/vectors/gimpvectors-export.c: Don't lose the last
|
||||
segment of closed paths when exporting...
|
||||
|
||||
2003-09-12 Simon Budig <simon@gimp.org>
|
||||
|
||||
* app/vectors/gimpvectors-export.c: Implemented more useful
|
||||
|
@ -172,9 +172,10 @@ gimp_vectors_path_data (const GimpVectors *vectors)
|
||||
g_string_append_printf (str, "\n C");
|
||||
}
|
||||
|
||||
for (i=2; i < control_points->len - 1; i++)
|
||||
for (i=2; i < (control_points->len + (closed ? 2 : - 1)); i++)
|
||||
{
|
||||
anchor = &g_array_index (control_points, GimpAnchor, i);
|
||||
anchor = &g_array_index (control_points, GimpAnchor,
|
||||
i % control_points->len);
|
||||
g_ascii_formatd (x_string, G_ASCII_DTOSTR_BUF_SIZE,
|
||||
"%.2f", anchor->position.x);
|
||||
g_ascii_formatd (y_string, G_ASCII_DTOSTR_BUF_SIZE,
|
||||
|
Reference in New Issue
Block a user