Code

Export/Import text as text + some bug-fixes.
[inkscape.git] / src / extension / internal / pov-out.cpp
index 7318fa78457873bbcaa21388f5cbeb33c333ab6d..7ed7408db3632ddd8031a26910b22e5b28f1afe2 100644 (file)
@@ -120,7 +120,7 @@ static const char *dstr(double d)
 /**
  *  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);
@@ -328,7 +328,7 @@ void PovOutput::doCurves(SPDocument *doc)
         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];