mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-28 02:10:36 +05:00
"Reduce Study" dialog box: bug fixing
This commit is contained in:
parent
d02f4dc567
commit
d620d57a86
@ -282,7 +282,10 @@ GEOMToolsGUI_TreeWidgetItem* GEOMToolsGUI_ReduceStudyDlg::addSubObject( QTreeWid
|
|||||||
{
|
{
|
||||||
GEOMToolsGUI_TreeWidgetItem* item;
|
GEOMToolsGUI_TreeWidgetItem* item;
|
||||||
if( !theObject->IsMainShape() ) {
|
if( !theObject->IsMainShape() ) {
|
||||||
GEOMToolsGUI_TreeWidgetItem* parentItem = addSubObject( theWidget, theObjects, theObject->GetMainShape() );
|
GEOM::GEOM_Object_var aMainShape = theObject->GetMainShape();
|
||||||
|
if ( CORBA::is_nil( aMainShape ) )
|
||||||
|
return NULL;
|
||||||
|
GEOMToolsGUI_TreeWidgetItem* parentItem = addSubObject( theWidget, theObjects, aMainShape );
|
||||||
item = findObjectInTree( theWidget, theObject );
|
item = findObjectInTree( theWidget, theObject );
|
||||||
if( !item )
|
if( !item )
|
||||||
item = new GEOMToolsGUI_TreeWidgetItem( parentItem, QStringList() << theObject->GetName(), theObject->GetStudyEntry() );
|
item = new GEOMToolsGUI_TreeWidgetItem( parentItem, QStringList() << theObject->GetName(), theObject->GetStudyEntry() );
|
||||||
|
Loading…
Reference in New Issue
Block a user