index 7318fa78457873bbcaa21388f5cbeb33c333ab6d..7ed7408db3632ddd8031a26910b22e5b28f1afe2 100644 (file)
/**
* Output data to the buffer, printf()-style
*/
-void PovOutput::out(char *fmt, ...)
+void PovOutput::out(char const *fmt, ...)
{
va_list args;
va_start(args, fmt);
SPStyle *style = SP_OBJECT_STYLE(shape);
/* fixme: Handle other fill types, even if this means translating gradients to a single
flat colour. */
- if (style && (style->fill.type == SP_PAINT_TYPE_COLOR))
+ if (style && (style->fill.isColor()))
{
// see color.h for how to parse SPColor
float rgb[3];