From a423bde3a48dffebe3a4c9e28ae0afe49ef0122b Mon Sep 17 00:00:00 2001 From: Henry Wong Date: Sun, 28 Sep 2025 18:26:30 -0700 Subject: [PATCH] item_to_paths: Attach newly-created SPStyle objects to the same object as the existing style object --- src/path/path-outline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/path/path-outline.cpp b/src/path/path-outline.cpp index 26094664fa..9ea2599362 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"); -- GitLab