0023420: EDF 14291 - Renaming objects

Fixed regression causing SIGSEGV on object renaming introduced by implementation of issue 22873
This commit is contained in:
vsr 2017-03-09 10:04:48 +03:00
parent d767647a79
commit 31792db89f

View File

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