From 1719d0ba6b7b32ed37f875288603b0a7dc6fbfe9 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 26 Jan 2018 16:47:56 +0100 Subject: [PATCH] fix bug in SmSwitchboard::doAction --- src/Gui/Inventor/SmSwitchboard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } } }