Salome HOME
0023420: EDF 14291 - Renaming objects
authorvsr <vsr@opencascade.com>
Thu, 9 Mar 2017 07:04:48 +0000 (10:04 +0300)
committervsr <vsr@opencascade.com>
Thu, 9 Mar 2017 07:04:48 +0000 (10:04 +0300)
Fixed regression causing SIGSEGV on object renaming introduced by implementation of issue 22873

src/GEOMGUI/GEOMGUI_TextTreeWdg.cxx

index d69e7bba2d058f7a8cd7653a12f26ee58a4a764b..70d7547656edb23f988cd8c5c8b36e47ff3ec0e1 100755 (executable)
@@ -319,7 +319,7 @@ void GEOMGUI_TextTreeWdg::updateAnnotationBranch( const QString& theEntry )
 //=================================================================================
 void GEOMGUI_TextTreeWdg::updateObjectName( const QString& theEntry )
 {
-  QTreeWidgetItem* anObjectItem;
+  QTreeWidgetItem* anObjectItem = 0;
 
   QHash<QString, QTreeWidgetItem*> anObjects = getObjects( DimensionShape );
   if ( anObjects.contains( theEntry ) )