From: Pawel Date: Tue, 17 Mar 2015 16:43:21 +0000 (+0100) Subject: 0025954: GeomPlate_Surface::SetBounds formatting/logic mismatch X-Git-Tag: V6_9_0_beta~27 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=2a8523acca4ed6b86298dbf94a3ca5187cb2f776;p=occt-copy.git 0025954: GeomPlate_Surface::SetBounds formatting/logic mismatch Corrected logic/formatting discrepancy. --- diff --git a/src/GeomPlate/GeomPlate_Surface.cxx b/src/GeomPlate/GeomPlate_Surface.cxx index 693940fd8e..192d9b9916 100644 --- a/src/GeomPlate/GeomPlate_Surface.cxx +++ b/src/GeomPlate/GeomPlate_Surface.cxx @@ -376,10 +376,8 @@ Handle(Geom_Surface) GeomPlate_Surface::CallSurfinit() const void GeomPlate_Surface::SetBounds(const Standard_Real Umin, const Standard_Real Umax, const Standard_Real Vmin, const Standard_Real Vmax) { if ((Umin>Umax) || (Vmin>Vmax)) Standard_Failure::Raise("Bounds haven't the good sense"); - else - myUmin=Umin;myUmax=Umax;myVmin=Vmin;myVmax=Vmax; if ((Umin==Umax) || (Vmin==Vmax)) Standard_Failure::Raise("Bounds are equal"); - + myUmin=Umin;myUmax=Umax;myVmin=Vmin;myVmax=Vmax; }