summaryrefslogtreecommitdiffstats
path: root/src/object/sp-ellipse.cpp
diff options
context:
space:
mode:
authorJoseph Da Silva <joseph.f.dasilva3@gmail.com>2019-03-20 15:52:46 +0000
committerJoseph Da Silva <joseph.f.dasilva3@gmail.com>2019-03-20 15:52:46 +0000
commit7a6a1baa2b891c16edd7fbb86be3179f92adaee2 (patch)
tree4c6dfc999dcc4ba532d4c6387f0ac52ac6019008 /src/object/sp-ellipse.cpp
parentGTK-3.22 dependency (diff)
downloadinkscape-7a6a1baa2b891c16edd7fbb86be3179f92adaee2.tar.gz
inkscape-7a6a1baa2b891c16edd7fbb86be3179f92adaee2.zip
Fixed: circles and ellipses had wrong element names in XML editor (Issue #116)
Diffstat (limited to 'src/object/sp-ellipse.cpp')
-rw-r--r--src/object/sp-ellipse.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/object/sp-ellipse.cpp b/src/object/sp-ellipse.cpp
index 361c90428..09be158eb 100644
--- a/src/object/sp-ellipse.cpp
+++ b/src/object/sp-ellipse.cpp
@@ -250,8 +250,8 @@ Inkscape::XML::Node *SPGenericEllipse::write(Inkscape::XML::Document *xml_doc, I
}
}
- if( type != new_type ) {
- switch( new_type ) {
+ if (type != new_type) {
+ switch (new_type) {
case SP_GENERIC_ELLIPSE_ARC:
repr->setCodeUnsafe(g_quark_from_string("svg:path"));
break;
@@ -265,10 +265,6 @@ Inkscape::XML::Node *SPGenericEllipse::write(Inkscape::XML::Document *xml_doc, I
std::cerr << "SPGenericEllipse::write(): unknown type." << std::endl;
}
type = new_type;
-
- // FIXME: The XML dialog won't update the element name. We need
- // a notifyElementNameChanged callback added to the XML observers
- // to trigger a refresh.
}
// std::cout << " type: " << g_quark_to_string( repr->code() ) << std::endl;