PVS: V783 Dereferencing of the invalid iterator 'b' might take place.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user