diff --git a/src/Gui/Inventor/SmSwitchboard.cpp b/src/Gui/Inventor/SmSwitchboard.cpp index 79210ac56b..b70666c38e 100644 --- a/src/Gui/Inventor/SmSwitchboard.cpp +++ b/src/Gui/Inventor/SmSwitchboard.cpp @@ -134,7 +134,7 @@ SmSwitchboard::doAction(SoAction * action) for (int idx = 0; idx < this->enable.getNum(); idx++) { const int numchildren = this->children->getLength(); if ( numchildren > 0 ) - action->traverse((*this->children)[idx % numchildren]); + this->children->traverse(action, (idx % numchildren)); // If center point is set, accumulate. if (bbaction->isCenterSet()) { acccenter += bbaction->getCenter(); @@ -150,7 +150,7 @@ SmSwitchboard::doAction(SoAction * action) if ( this->enable[idx] ) { const int numchildren = this->children->getLength(); if ( numchildren > 0 ) - action->traverse((*this->children)[idx % numchildren]); + this->children->traverse(action, (idx % numchildren)); } } }