summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e1558f8)
raw | patch | inline | side by side (parent: e1558f8)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 13 Feb 2008 19:16:50 +0000 (19:16 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 13 Feb 2008 19:16:50 +0000 (19:16 +0000) |
src/marker.cpp | patch | blob | history |
diff --git a/src/marker.cpp b/src/marker.cpp
index 0050fc87c58406d039e5138646e5c4a765c56c38..08f1b5fad1cdf66ce030b44b6bffe8f6f54fa69b 100644 (file)
--- a/src/marker.cpp
+++ b/src/marker.cpp
@@ -724,13 +724,17 @@ generate_marker (GSList *reprs, NR::Rect bounds, SPDocument *document, NR::Matri
Inkscape::XML::Node *defsrepr = SP_OBJECT_REPR (SP_DOCUMENT_DEFS (document));
Inkscape::XML::Node *repr = xml_doc->createElement("svg:marker");
- repr->setAttribute("markerUnits", "userSpaceOnUse");
+
+ // Uncommenting this will make the marker fixed-size independent of stroke width.
+ // Commented out for consistency with standard markers which scale when you change
+ // stroke width:
+ //repr->setAttribute("markerUnits", "userSpaceOnUse");
+
sp_repr_set_svg_double(repr, "markerWidth", bounds.extent(NR::X));
sp_repr_set_svg_double(repr, "markerHeight", bounds.extent(NR::Y));
repr->setAttribute("orient", "auto");
-
defsrepr->appendChild(repr);
const gchar *mark_id = repr->attribute("id");
SPObject *mark_object = document->getObjectById(mark_id);