1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0027775: Different behavior of GeomFill_BSplineCurves algorithm in DEBUG and RELEASE mode

Throw an exception in case of incorrect input data.
This commit is contained in:
nbv
2016-08-15 18:06:34 +03:00
committed by bugmaster
parent bf3220cfc5
commit 5146b5baa3
2 changed files with 27 additions and 3 deletions

View File

@@ -285,10 +285,9 @@ void GeomFill_BSplineCurves::Init
Standard_Integer NbVPoles = SetSameDistribution(CC2,CC4);
if(Type == GeomFill_CoonsStyle) {
Standard_ConstructionError_Raise_if
(NbUPoles < 4 || NbVPoles < 4, " GeomFill_BSplineCurves: invalid filling style");
if(NbUPoles < 4 || NbVPoles < 4)
Standard_ConstructionError::Raise("GeomFill_BSplineCurves: invalid filling style");
}
TColgp_Array1OfPnt P1(1,NbUPoles);
TColgp_Array1OfPnt P2(1,NbVPoles);