]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
IPAL 19589 Operation status" (PAL_NOT_DONE_ERROR) appears after trying to translate...
authordmv <dmv@opencascade.com>
Wed, 16 Apr 2008 11:08:02 +0000 (11:08 +0000)
committerdmv <dmv@opencascade.com>
Wed, 16 Apr 2008 11:08:02 +0000 (11:08 +0000)
src/GEOM_I/GEOM_ITransformOperations_i.cc

index 37816f5f50361a02814496a864c4fe9b45b8b010..589c892ec73fffd130fc437c9b04913458ad53cb 100644 (file)
@@ -310,9 +310,9 @@ GEOM::GEOM_Object_ptr GEOM_ITransformOperations_i::TranslateVectorDistance
 {
   GEOM::GEOM_Object_var aGEOMObject;
   GetOperations()->SetNotDone(); //Set a not done flag
-
-  if (theObject == NULL || theVector == NULL || theDistance == 0) return aGEOMObject._retn();
-
+  
+  if (theObject == NULL || theVector == NULL) return aGEOMObject._retn();
+  
   //check if the object is a subshape
   if (!theCopy && !theObject->IsMainShape()) {
     GetOperations()->SetErrorCode(SUBSHAPE_ERROR);