summaryrefslogtreecommitdiffstats
path: root/src/path-chemistry.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2006-09-30 16:29:24 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2006-09-30 16:29:24 +0000
commit747ec2c063a1a8bf938b45a6e9674ec85ab4d99c (patch)
treebc793b3d641876c08a2a79b1ca953049af0d14c4 /src/path-chemistry.cpp
parentfixed bug: fixed two of the 'quark > 0' console errors. (diff)
downloadinkscape-747ec2c063a1a8bf938b45a6e9674ec85ab4d99c.tar.gz
inkscape-747ec2c063a1a8bf938b45a6e9674ec85ab4d99c.zip
Patch by Popolon to fix bug "[ 1562520 ] Object to path removes mask & clip-path"
(bzr r1729)
Diffstat (limited to 'src/path-chemistry.cpp')
-rw-r--r--src/path-chemistry.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp
index 0c35020b7..1415f85e6 100644
--- a/src/path-chemistry.cpp
+++ b/src/path-chemistry.cpp
@@ -329,6 +329,17 @@ sp_selected_item_to_curved_repr(SPItem *item, guint32 text_grouping_policy)
SP_OBJECT_STYLE(SP_OBJECT_PARENT(item)));
repr->setAttribute("style", style_str);
g_free(style_str);
+
+ /* Mask */
+ gchar *mask_str = (gchar *) SP_OBJECT_REPR(item)->attribute("mask");
+ if ( mask_str )
+ repr->setAttribute("mask", mask_str);
+
+ /* Clip path */
+ gchar *clip_path_str = (gchar *) SP_OBJECT_REPR(item)->attribute("clip-path");
+ if ( clip_path_str )
+ repr->setAttribute("clip-path", clip_path_str);
+
/* Rotation center */
sp_repr_set_attr(repr, "inkscape:transform-center-x", SP_OBJECT_REPR(item)->attribute("inkscape:transform-center-x"));
sp_repr_set_attr(repr, "inkscape:transform-center-y", SP_OBJECT_REPR(item)->attribute("inkscape:transform-center-y"));