summaryrefslogtreecommitdiffstats
path: root/src/sp-ellipse.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-11-16 17:18:01 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-11-16 17:18:01 +0000
commit513f464acbc3b4216f8f232ec39eef35de508726 (patch)
tree51a3e66ac8895cdbcefa8e79dc0b7e00973e71fd /src/sp-ellipse.cpp
parentFix nasty leak (diff)
downloadinkscape-513f464acbc3b4216f8f232ec39eef35de508726.tar.gz
inkscape-513f464acbc3b4216f8f232ec39eef35de508726.zip
Don't write the d attribute on <circle> or <ellipse>
(bzr r13720)
Diffstat (limited to 'src/sp-ellipse.cpp')
-rw-r--r--src/sp-ellipse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-ellipse.cpp b/src/sp-ellipse.cpp
index 027accd39..a74d4687d 100644
--- a/src/sp-ellipse.cpp
+++ b/src/sp-ellipse.cpp
@@ -604,7 +604,7 @@ void SPGenericEllipse::update_patheffect(bool write)
if (write) {
Inkscape::XML::Node *repr = this->getRepr();
- if (this->_curve != NULL) {
+ if (this->_curve != NULL && type == SP_GENERIC_ELLIPSE_ARC) {
gchar *str = sp_svg_write_path(this->_curve->get_pathvector());
repr->setAttribute("d", str);
g_free(str);