0025954: GeomPlate_Surface::SetBounds formatting/logic mismatch
authorPawel <pawel-kowalski@wp.pl>
Tue, 17 Mar 2015 16:43:21 +0000 (17:43 +0100)
committerapn <apn@opencascade.com>
Thu, 26 Mar 2015 12:33:11 +0000 (15:33 +0300)
Corrected logic/formatting discrepancy.

src/GeomPlate/GeomPlate_Surface.cxx

index 693940f..192d9b9 100644 (file)
@@ -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;
 }