summaryrefslogtreecommitdiffstats
path: root/src/sp-ellipse.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-11-17 22:27:50 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-11-17 22:27:50 +0000
commitdf29620f545c2eaf2ddb845f8d1d10b443e512be (patch)
treec5a3abfbf1bba71c5e0e6ad0f0fea3186f915ff9 /src/sp-ellipse.cpp
parentadding knot improvements pointed by su_v (diff)
parentfix a bug in fillet/chamfer on apply on non shapes (diff)
downloadinkscape-df29620f545c2eaf2ddb845f8d1d10b443e512be.tar.gz
inkscape-df29620f545c2eaf2ddb845f8d1d10b443e512be.zip
update to trunk
(bzr r13682.1.14)
Diffstat (limited to 'src/sp-ellipse.cpp')
-rw-r--r--src/sp-ellipse.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp-ellipse.cpp b/src/sp-ellipse.cpp
index b5c6e4af8..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);
@@ -642,8 +642,8 @@ bool SPGenericEllipse::set_elliptical_path_attribute(Inkscape::XML::Node *repr)
// Make sure our pathvector is up to date.
this->set_shape();
- if (this->getCurve() != NULL) {
- gchar* d = sp_svg_write_path(this->getCurve()->get_pathvector());
+ if (_curve != NULL) {
+ gchar* d = sp_svg_write_path(_curve->get_pathvector());
repr->setAttribute("d", d);