summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-12-04 22:08:51 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-12-04 22:08:51 +0000
commit12a2f445e64e08e7d2dd12fde2ee17467238ebf9 (patch)
tree331def8337b40ebcf76a8bf892f9d5d9549c78b4 /src/widgets
parentDo not reset rx/cx to zero when resetting arc to whole ellipse (diff)
downloadinkscape-12a2f445e64e08e7d2dd12fde2ee17467238ebf9.tar.gz
inkscape-12a2f445e64e08e7d2dd12fde2ee17467238ebf9.zip
Account for Inkscape's custom arcs (which do not have cx/cy)
If an open arc is rendered we need to look at the prefixed values instead.
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/arc-toolbar.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/arc-toolbar.cpp b/src/widgets/arc-toolbar.cpp
index fd8ba0343..77f74b348 100644
--- a/src/widgets/arc-toolbar.cpp
+++ b/src/widgets/arc-toolbar.cpp
@@ -315,6 +315,10 @@ static void arc_tb_event_attr_changed(Inkscape::XML::Node *repr, gchar const * /
sp_repr_get_double(repr, "rx", &rx);
sp_repr_get_double(repr, "ry", &ry);
}
+ if (!rx) {
+ sp_repr_get_double(repr, "sodipodi:rx", &rx);
+ sp_repr_get_double(repr, "sodipodi:ry", &ry);
+ }
SPDesktop *desktop = static_cast<SPDesktop *>(g_object_get_data( tbl, "desktop" ));
SPDocument* document = desktop->getDocument();