mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 01:58:36 +05:00
IPAL 19589 Operation status" (PAL_NOT_DONE_ERROR) appears after trying to translate to NULL length.
This commit is contained in:
parent
af6a52e38f
commit
8334d135bb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user