summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c169f6c)
raw | patch | inline | side by side (parent: c169f6c)
author | jaspervdg <jaspervdg@users.sourceforge.net> | |
Sat, 12 Apr 2008 09:32:03 +0000 (09:32 +0000) | ||
committer | jaspervdg <jaspervdg@users.sourceforge.net> | |
Sat, 12 Apr 2008 09:32:03 +0000 (09:32 +0000) |
src/path-chemistry.cpp | patch | blob | history |
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp
index a08b6feb5235115b5ea5b0a64af91afbc5011ddb..28538f36c75e9d7b41f62ff3459c1b2cfdbae812 100644 (file)
--- a/src/path-chemistry.cpp
+++ b/src/path-chemistry.cpp
items = g_slist_sort(items, (GCompareFunc) sp_item_repr_compare_position);
items = g_slist_reverse(items);
- // remember the position, id and style of the topmost path, they will be assigned to the combined one
+ // remember the position, id, transform and style of the topmost path, they will be assigned to the combined one
gint position = 0;
char const *id = NULL;
+ char const *transform = NULL;
gchar *style = NULL;
SPCurve* curve = 0;
parent = SP_OBJECT_REPR(first)->parent();
position = SP_OBJECT_REPR(first)->position();
id = SP_OBJECT_REPR(first)->attribute("id");
+ transform = SP_OBJECT_REPR(first)->attribute("transform");
// FIXME: merge styles of combined objects instead of using the first one's style
style = g_strdup(SP_OBJECT_REPR(first)->attribute("style"));
- sp_curve_transform(c, item->transform);
+ //sp_curve_transform(c, item->transform);
curve = c;
} else {
sp_curve_transform(c, item->getRelativeTransform(SP_OBJECT(first)));
Inkscape::XML::Document *xml_doc = sp_document_repr_doc(desktop->doc());
Inkscape::XML::Node *repr = xml_doc->createElement("svg:path");
- // restore id and style
+ // restore id, transform and style
repr->setAttribute("id", id);
-
+ if (transform) repr->setAttribute("transform", transform);
repr->setAttribute("style", style);
g_free(style);