From 6e48d95c95dde44568d5cd12ac15c649f303dc17 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Wed, 25 Oct 2006 04:52:48 +0000 Subject: preserve clip/mask for stroke-to-path also (bzr r1859) --- src/splivarot.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/splivarot.cpp') diff --git a/src/splivarot.cpp b/src/splivarot.cpp index 252a2432d..9aec69575 100644 --- a/src/splivarot.cpp +++ b/src/splivarot.cpp @@ -631,6 +631,8 @@ sp_selected_path_outline() float const scale = transform.expansion(); gchar *style = g_strdup(SP_OBJECT_REPR(item)->attribute("style")); SPStyle *i_style = SP_OBJECT(item)->style; + gchar const *mask = SP_OBJECT_REPR(item)->attribute("mask"); + gchar const *clip_path = SP_OBJECT_REPR(item)->attribute("clip-path"); float o_width, o_miter; JoinType o_join; @@ -762,6 +764,10 @@ sp_selected_path_outline() repr->setAttribute("d", str); g_free(str); + if (mask) + repr->setAttribute("mask", mask); + if (clip_path) + repr->setAttribute("clip-path", clip_path); if (SP_IS_SHAPE(item) && sp_shape_has_markers (SP_SHAPE(item))) { -- cgit v1.2.3