Salome HOME
Prevent usage of uninitialized variable
authorjfa <jfa@opencascade.com>
Tue, 19 Oct 2021 09:42:47 +0000 (12:42 +0300)
committerjfa <jfa@opencascade.com>
Tue, 19 Oct 2021 09:42:47 +0000 (12:42 +0300)
src/XGUI/XGUI_FacesPanel.cpp

index e3a649bc65470ad39d872ad2dff353ac463baa34..d312092cfd8e4b0cfc6f68ae229e82b0480bf182 100644 (file)
@@ -92,7 +92,7 @@ void updateHiddenShapes(Handle(ModuleBase_ResultPrs) thePrs, const TopoDS_ListOf
 
 //********************************************************************
 XGUI_FacesPanel::XGUI_FacesPanel(QWidget* theParent, XGUI_Workshop* theWorkshop)
-  : QDockWidget(theParent), myWorkshop(theWorkshop), myIsActive(false)
+  : QDockWidget(theParent), myWorkshop(theWorkshop), myIsActive(false), myLastItemIndex(0)
 {
   setWindowTitle(tr("Hide Faces"));
   setObjectName("Hide Faces");