fix various flaws detected by PVS

This commit is contained in:
wmayer
2019-03-01 22:52:41 +01:00
parent bd93bd2494
commit 5ae635ac64
5 changed files with 9 additions and 10 deletions

View File

@@ -1072,7 +1072,7 @@ bool SoFCCSysDragger::isShownTranslationY()
bool SoFCCSysDragger::isShownTranslationZ()
{
SoSwitch *sw = SO_GET_ANY_PART(this, "yTranslatorSwitch", SoSwitch);
SoSwitch *sw = SO_GET_ANY_PART(this, "zTranslatorSwitch", SoSwitch);
return (sw->whichChild.getValue() == SO_SWITCH_ALL);
}