From: dmv Date: Wed, 16 Apr 2008 11:08:02 +0000 (+0000) Subject: IPAL 19589 Operation status" (PAL_NOT_DONE_ERROR) appears after trying to translate... X-Git-Tag: V4_1_2rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8334d135bba09dd2ea760f46489d1a24363671c0;p=modules%2Fgeom.git IPAL 19589 Operation status" (PAL_NOT_DONE_ERROR) appears after trying to translate to NULL length. --- 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);