mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-06-03 22:17:49 +05:00
NPAL18362: EDF634: SIGSEV when we try to create a point and when a geom object is selected.
This commit is contained in:
parent
771241721f
commit
19a2c21851
@ -49,7 +49,9 @@
|
|||||||
#include <TopTools_IndexedMapOfShape.hxx>
|
#include <TopTools_IndexedMapOfShape.hxx>
|
||||||
|
|
||||||
#include <qapplication.h>
|
#include <qapplication.h>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// class : BasicGUI_PointDlg()
|
// class : BasicGUI_PointDlg()
|
||||||
// purpose : Constructs a BasicGUI_PointDlg which is a child of 'parent', with the
|
// purpose : Constructs a BasicGUI_PointDlg which is a child of 'parent', with the
|
||||||
@ -369,7 +371,6 @@ void BasicGUI_PointDlg::SelectionIntoArgument()
|
|||||||
QString aName = GEOMBase::GetName( aSelectedObject );
|
QString aName = GEOMBase::GetName( aSelectedObject );
|
||||||
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
|
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
|
||||||
{
|
{
|
||||||
myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
|
|
||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
if ( GEOMBase::GetShape( aSelectedObject, aShape, TopAbs_SHAPE ) && !aShape.IsNull() )
|
if ( GEOMBase::GetShape( aSelectedObject, aShape, TopAbs_SHAPE ) && !aShape.IsNull() )
|
||||||
{
|
{
|
||||||
@ -385,7 +386,6 @@ void BasicGUI_PointDlg::SelectionIntoArgument()
|
|||||||
TopExp::MapShapes( aShape, aShapes );
|
TopExp::MapShapes( aShape, aShapes );
|
||||||
aShape = aShapes.FindKey( anIndex );
|
aShape = aShapes.FindKey( anIndex );
|
||||||
aSelectedObject = aShapesOp->GetSubShape(aSelectedObject, anIndex);
|
aSelectedObject = aShapesOp->GetSubShape(aSelectedObject, anIndex);
|
||||||
aSelMgr->clearSelected();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( id == 0 )
|
if ( id == 0 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user