Commit f6f49b23 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

redid the fix for the compiler warning: made gimp_vectors_to_art_vpath()

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

	* app/vectors/gimpvectors.[ch]: redid the fix for the compiler
	warning: made gimp_vectors_to_art_vpath() take a const GimpVectors
	again, but don't freeze/thaw it since it isn't changed anyway.
parent 0b53610c
2003-09-07 Sven Neumann <sven@gimp.org>
* app/vectors/gimpvectors.[ch]: redid the fix for the compiler
warning: made gimp_vectors_to_art_vpath() take a const GimpVectors
again, but don't freeze/thaw it since it isn't changed anyway.
2003-09-06 Helvetix Victorinox <helvetix@gimp.org>
* app/composite/gimp-composite-mmx.c
app/composite/gimp-composite-sse.c
app/composite/gimp-composite-sse2.c:
* app/composite/gimp-composite-sse.c
* app/composite/gimp-composite-sse2.c:
Convert "unsigned long" to guint32 in preparation for 64bit
machinery.
......@@ -961,7 +961,7 @@ gimp_vectors_real_make_bezier (const GimpVectors *vectors)
* Return value: Newly allocated ArtVpath.
*/
ArtVpath *
gimp_vectors_to_art_vpath (GimpVectors *vectors)
gimp_vectors_to_art_vpath (const GimpVectors *vectors)
{
ArtVpath *vec; /* Libart path we're creating */
GimpStroke *cur_stroke;
......@@ -971,8 +971,6 @@ gimp_vectors_to_art_vpath (GimpVectors *vectors)
vec = art_new (ArtVpath, num_points);
gimp_vectors_freeze (vectors);
/* Get the list of Strokes in the vector, and create the equivalent
* ArtVpath node */
......@@ -984,9 +982,5 @@ gimp_vectors_to_art_vpath (GimpVectors *vectors)
gimp_stroke_to_art_point (cur_stroke, vec);
}
gimp_vectors_thaw (vectors);
/* That's it - nothing else to see here */
return vec;
}
......@@ -166,7 +166,7 @@ GimpVectors * gimp_vectors_make_bezier (const GimpVectors *vectors);
/* Convert to libart vector path */
ArtVpath * gimp_vectors_to_art_vpath (GimpVectors *vectors);
ArtVpath * gimp_vectors_to_art_vpath (const GimpVectors *vectors);
#endif /* __GIMP_VECTORS_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment