From 8334d135bba09dd2ea760f46489d1a24363671c0 Mon Sep 17 00:00:00 2001 From: dmv Date: Wed, 16 Apr 2008 11:08:02 +0000 Subject: [PATCH] IPAL 19589 Operation status" (PAL_NOT_DONE_ERROR) appears after trying to translate to NULL length. --- src/GEOM_I/GEOM_ITransformOperations_i.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GEOM_I/GEOM_ITransformOperations_i.cc b/src/GEOM_I/GEOM_ITransformOperations_i.cc index 37816f5f5..589c892ec 100644 --- a/src/GEOM_I/GEOM_ITransformOperations_i.cc +++ b/src/GEOM_I/GEOM_ITransformOperations_i.cc @@ -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);