From: DBV <> Date: Fri, 21 Oct 2011 17:31:28 +0000 (+0000) Subject: 0022761: Exception in ModelingData in debug mode X-Git-Tag: V6_5_3_beta1~183 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=c55993db023aba11db637c470e75e2df747d68d0;p=occt-copy.git 0022761: Exception in ModelingData in debug mode --- diff --git a/src/BRepTools/BRepTools.cxx b/src/BRepTools/BRepTools.cxx index f77dea8a86..0a731647d7 100755 --- a/src/BRepTools/BRepTools.cxx +++ b/src/BRepTools/BRepTools.cxx @@ -143,11 +143,11 @@ void BRepTools::AddUVBounds(const TopoDS_Face& F, Standard_Real pf,pl; Bnd_Box2d Baux; const Handle(Geom2d_Curve) C = BRep_Tool::CurveOnSurface(E,F,pf,pl); + if (C.IsNull()) return; if (pl < pf) { // Petit Blindage Standard_Real aux; aux = pf; pf = pl; pl = aux; } - if (C.IsNull()) return; Geom2dAdaptor_Curve PC(C,pf,pl); if (Precision::IsNegativeInfinite(pf) || Precision::IsPositiveInfinite(pf)) {