index 0690ef140c480efe083600cad8c5f71b2cbc8b76..9a78a5293ec84455eaa03f87ab4564de786478ff 100644 (file)
Inkscape::XML::Node *stop = xml_doc->createElement("svg:stop");
gchar b[64];
- sp_svg_write_color(b, 64, color);
+ sp_svg_write_color(b, sizeof(b), color);
{
gchar *t = g_strdup_printf("stop-color:%s;stop-opacity:1;", b);
@@ -1230,7 +1230,7 @@ sp_gradient_vector_for_object(SPDocument *const doc, SPDesktop *const desktop,
rgba = sp_desktop_get_color(desktop, is_fill);
}
} else if (paint.isColor()) {
- rgba = sp_color_get_rgba32_ualpha(&paint.value.color, 0xff);
+ rgba = paint.value.color.toRGBA32( 0xff );
} else {
// if o doesn't use flat color, then take current color of the desktop.
rgba = sp_desktop_get_color(desktop, is_fill);