mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-12 01:30:36 +05:00
fixed crash in constructAISObject
The Prs3d_PointAspect pointer may be NULL.
This commit is contained in:
parent
0c82f25ea9
commit
386c243bd1
@ -1093,10 +1093,13 @@ void CurveCreator_Curve::constructAISObject()
|
|||||||
// myAISShape->SetColor( myCurveColor );
|
// myAISShape->SetColor( myCurveColor );
|
||||||
myAISShape->SetWidth( myLineWidth );
|
myAISShape->SetWidth( myLineWidth );
|
||||||
Handle(Prs3d_PointAspect) anAspect = myAISShape->Attributes()->PointAspect();
|
Handle(Prs3d_PointAspect) anAspect = myAISShape->Attributes()->PointAspect();
|
||||||
anAspect->SetScale( 3.0 );
|
if (!anAspect.IsNull())
|
||||||
anAspect->SetTypeOfMarker(Aspect_TOM_O_POINT);
|
{
|
||||||
anAspect->SetColor(myPointAspectColor);
|
anAspect->SetScale( 3.0 );
|
||||||
myAISShape->Attributes()->SetPointAspect( anAspect );
|
anAspect->SetTypeOfMarker(Aspect_TOM_O_POINT);
|
||||||
|
anAspect->SetColor(myPointAspectColor);
|
||||||
|
myAISShape->Attributes()->SetPointAspect( anAspect );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Handle(AIS_InteractiveObject) CurveCreator_Curve::getAISObject( const bool theNeedToBuild ) const
|
Handle(AIS_InteractiveObject) CurveCreator_Curve::getAISObject( const bool theNeedToBuild ) const
|
||||||
|
Loading…
Reference in New Issue
Block a user