mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-29 10:50:35 +05:00
4x & 5x: Error at Measures - Dimensions - Angle with edge selection
This commit is contained in:
parent
66f6a06c3e
commit
c6477a45c9
@ -1767,7 +1767,8 @@ Standard_Real GEOMImpl_IMeasureOperations::GetAngle (Handle(GEOM_Object) theLine
|
||||
Handle(Geom_Curve) C1 = BRep_Tool::Curve(E1,fp,lp);
|
||||
Handle(Geom_Curve) C2 = BRep_Tool::Curve(E2,fp,lp);
|
||||
|
||||
if (!C1->IsKind(STANDARD_TYPE(Geom_Line)) ||
|
||||
if ( C1.IsNull() || C2.IsNull() ||
|
||||
!C1->IsKind(STANDARD_TYPE(Geom_Line)) ||
|
||||
!C2->IsKind(STANDARD_TYPE(Geom_Line)))
|
||||
{
|
||||
SetErrorCode("The edges must be linear");
|
||||
|
Loading…
Reference in New Issue
Block a user