]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Improve CheckShape function
authorjfa <jfa@opencascade.com>
Thu, 11 Aug 2005 12:52:34 +0000 (12:52 +0000)
committerjfa <jfa@opencascade.com>
Thu, 11 Aug 2005 12:52:34 +0000 (12:52 +0000)
src/GEOM_I/GEOM_IMeasureOperations_i.cc

index e57839312c751de5f54b2af514654c30ae6bed6f..a76cf177ea7b2d0c2da16abb4aa5d428a5a9b59f 100644 (file)
@@ -183,29 +183,29 @@ CORBA::Boolean GEOM_IMeasureOperations_i::CheckShape (GEOM::GEOM_Object_ptr theS
   GetOperations()->SetNotDone();
 
   if (theShape == NULL) 
-    {
-      theDescription = CORBA::string_dup("null");
-      return 0;
-    }
+  {
+    theDescription = CORBA::string_dup("null");
+    return 0;
+  }
 
   //Get the reference shape
   Handle(GEOM_Object) aShape = GetOperations()->GetEngine()->GetObject
     (theShape->GetStudyID(), theShape->GetEntry());
 
   if (aShape.IsNull())
-    {
-      theDescription = CORBA::string_dup("null2");
-      return 0;
-    }
+  {
+    theDescription = CORBA::string_dup("null2");
+    return 0;
+  }
 
   // Get shape parameters
   TCollection_AsciiString aDump;
   if (GetOperations()->CheckShape(aShape, aDump))
-    {
-      theDescription = CORBA::string_dup(aDump.ToCString());
-      return 1;
-    }
-  theDescription = CORBA::string_dup("checkShape 0");
+  {
+    theDescription = CORBA::string_dup("OK");
+    return 1;
+  }
+  theDescription = CORBA::string_dup(aDump.ToCString());
   return 0;
 }