Coverity issues:

129097
129098
129099
129101
129102
129132
129134
129203
This commit is contained in:
wmayer
2016-08-16 16:34:51 +02:00
parent 1134ab9747
commit 683f943d38
6 changed files with 24 additions and 13 deletions

View File

@@ -841,7 +841,8 @@ void View3DInventorViewer::setNavigationType(Base::Type t)
NavigationStyle* ns = static_cast<NavigationStyle*>(base);
ns->operator = (*this->navigation);
delete this->navigation;
if (this->navigation)
ns->operator = (*this->navigation);
this->navigation = ns;
this->navigation->setViewer(this);
}