PVS: V783 Dereferencing of the invalid iterator 'b' might take place.

This commit is contained in:
wmayer
2019-02-17 22:39:13 +01:00
parent 6f6107d362
commit 34da2b5d4f

View File

@@ -25,7 +25,7 @@
#ifndef _PreComp_
# include <QMessageBox>
# include <QAction>
# include <QAction>
#endif
#include "ui_TaskBooleanParameters.h"
@@ -161,7 +161,7 @@ void TaskBooleanParameters::onSelectionChanged(const Gui::SelectionChanges& msg)
// Make bodies visible again
Gui::ViewProviderDocumentObject* vp = dynamic_cast<Gui::ViewProviderDocumentObject*>(
Gui::Application::Instance->getViewProvider(*b));
Gui::Application::Instance->getViewProvider(pcBody));
if (vp != NULL)
vp->show();
if (bodies.size() == 0) {