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:
Simon Budig
2003-09-12 09:37:30 +00:00
committed by Simon Budig
parent 5c6fe50221
commit 8de8105450
2 changed files with 8 additions and 2 deletions

View File

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

View File

@ -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,