summaryrefslogtreecommitdiffstats
path: root/src/sp-switch.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2014-02-19 20:35:45 +0000
committerMarkus Engel <markus.engel@tum.de>2014-02-19 20:35:45 +0000
commitaaeae24dd99afc7055d71912aba076a838c199b6 (patch)
treed3d0772e0139c824b53944fe372f740f7b67a6bb /src/sp-switch.cpp
parentAdd SVG2 property 'paint-order'. (diff)
downloadinkscape-aaeae24dd99afc7055d71912aba076a838c199b6.tar.gz
inkscape-aaeae24dd99afc7055d71912aba076a838c199b6.zip
Fix for SPSwitch updates.
Fixed bugs: - https://launchpad.net/bugs/1254373 (bzr r13044)
Diffstat (limited to 'src/sp-switch.cpp')
-rw-r--r--src/sp-switch.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/sp-switch.cpp b/src/sp-switch.cpp
index b4841c0d0..db6db9909 100644
--- a/src/sp-switch.cpp
+++ b/src/sp-switch.cpp
@@ -82,16 +82,22 @@ gchar *SPSwitch::description() const {
ngettext(_("of <b>%d</b> object"), _("of <b>%d</b> objects"), len), len);
}
-void SPSwitch::child_added(Inkscape::XML::Node* /*child*/, Inkscape::XML::Node* /*ref*/) {
+void SPSwitch::child_added(Inkscape::XML::Node* child, Inkscape::XML::Node* ref) {
+ SPGroup::child_added(child, ref);
+
this->_reevaluate(true);
}
-void SPSwitch::remove_child(Inkscape::XML::Node *) {
- this->_reevaluate();
+void SPSwitch::remove_child(Inkscape::XML::Node *child) {
+ SPGroup::remove_child(child);
+
+ this->_reevaluate();
}
-void SPSwitch::order_changed (Inkscape::XML::Node *, Inkscape::XML::Node *, Inkscape::XML::Node *)
+void SPSwitch::order_changed (Inkscape::XML::Node *child, Inkscape::XML::Node *old_ref, Inkscape::XML::Node *new_ref)
{
+ SPGroup::order_changed(child, old_ref, new_ref);
+
this->_reevaluate();
}