diff --git a/src/path/path-outline.cpp b/src/path/path-outline.cpp index 26094664fa97c27ec3c2e328b7e6df075c8677a7..9ea25993625b24cb5b2f47df1aed238b84828f71 100644 --- a/src/path/path-outline.cpp +++ b/src/path/path-outline.cpp @@ -445,7 +445,7 @@ item_to_paths(SPItem *item, bool legacy, SPItem *context) // The stroke ------------------------ Inkscape::XML::Node *stroke = nullptr; if (s_val && g_strcmp0(s_val,"none") != 0 && stroke_path.size() > 0) { - auto stroke_style = std::make_unique(doc); + auto stroke_style = std::make_unique(nullptr, style->object); stroke_style->mergeCSS(ncss); stroke = xml_doc->createElement("svg:path"); @@ -457,7 +457,7 @@ item_to_paths(SPItem *item, bool legacy, SPItem *context) // The fill -------------------------- Inkscape::XML::Node *fill = nullptr; if (f_val && g_strcmp0(f_val,"none") != 0 && !legacy) { - auto fill_style = std::make_unique(doc); + auto fill_style = std::make_unique(nullptr, style->object); fill_style->mergeCSS(ncsf); fill = xml_doc->createElement("svg:path");