X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fpath-chemistry.cpp;h=99d22edc745ee4b68b9e09e771ebe1c93c2b7412;hb=9092fa64659033e70bf914a5d83d5470d31cbc27;hp=c897658ff7b6651c44137b5ed7d4135fcf00533f;hpb=c053bc755d74ed3bf614d1b3e2edb7c70a85bfec;p=inkscape.git
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp
index c897658ff..99d22edc7 100644
--- a/src/path-chemistry.cpp
+++ b/src/path-chemistry.cpp
@@ -230,7 +230,7 @@ sp_selected_path_break_apart(void)
if (did) {
sp_document_done(sp_desktop_document(desktop), SP_VERB_SELECTION_BREAK_APART,
- _("Break Apart"));
+ _("Break apart"));
} else {
sp_desktop_message_stack(desktop)->flash(Inkscape::ERROR_MESSAGE, _("No path(s) to break apart in the selection."));
return;
@@ -297,7 +297,7 @@ sp_selected_path_to_curves0(gboolean interactive, guint32 text_grouping_policy)
if (interactive) {
if (did) {
sp_document_done(sp_desktop_document(desktop), SP_VERB_OBJECT_TO_CURVE,
- /* TODO: annotate */ "path-chemistry.cpp:300");
+ _("Object to path"));
} else {
sp_desktop_message_stack(desktop)->flash(Inkscape::ERROR_MESSAGE, _("No objects to convert to path in the selection."));
return;
@@ -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"));
@@ -375,7 +386,7 @@ sp_selected_path_reverse()
if (did) {
sp_document_done(sp_desktop_document(desktop), SP_VERB_SELECTION_REVERSE,
- /* TODO: annotate */ "path-chemistry.cpp:378");
+ _("Reverse path"));
} else {
sp_desktop_message_stack(desktop)->flash(Inkscape::ERROR_MESSAGE, _("No paths to reverse in the selection."));
}