]> OCCT Git - occt-copy.git/commitdiff
reversed meaning of -o option
authorisn <isn@opencascade.com>
Tue, 27 Sep 2016 17:19:31 +0000 (20:19 +0300)
committerisn <isn@opencascade.com>
Tue, 27 Sep 2016 17:19:31 +0000 (20:19 +0300)
src/BRepTest/BRepTest_BasicCommands.cxx

index fca78e69b7d91d9da4a1b434653531bdc9564f96..fff1366e3546ef8fb4042d0f05ee82b46be41588 100644 (file)
@@ -494,14 +494,14 @@ static Standard_Integer gbounding(Draw_Interpretor& di,Standard_Integer n,const
   if (n != 2 && n != 3) 
   {
     di << "Usage: gbounding surf/curve/curve2d [-o] \n";
-    di << "[-o] turn off Optimal mode ('on' by default) \n";
+    di << "[-o] turn on Optimal mode ('off' by default) \n";
     return 1;
   }
   else
   {
-    Standard_Boolean IsOptimal = Standard_True;
+    Standard_Boolean IsOptimal = Standard_False;
     if (n == 3 && !strcmp(a[2], "-o"))
-      IsOptimal = Standard_False;
+      IsOptimal = Standard_True;
     
     Standard_Real axmin,aymin,azmin,axmax,aymax,azmax;
     Bnd_Box B;