From: dmv Date: Wed, 15 Oct 2008 13:47:10 +0000 (+0000) Subject: 4x & 5x: Error at Measures - Dimensions - Angle with edge selection X-Git-Tag: V5_1_0a3~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c6477a45c9ac8310cc1d4af962c0297746627f25;p=modules%2Fgeom.git 4x & 5x: Error at Measures - Dimensions - Angle with edge selection --- diff --git a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx index fc5042bc0..e9d5815be 100644 --- a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx @@ -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");