Salome HOME
Implementation Notebook in the GEOM.
[modules/geom.git] / src / TransformationGUI / TransformationGUI_OffsetDlg.cxx
index a0f4d448dbd93479ca6e3d24febc5c969003b822..dd9636d6a58cdf6d1904d7a1b513e44fa06ef9da 100644 (file)
@@ -278,7 +278,7 @@ bool TransformationGUI_OffsetDlg::isValid( QString& msg )
       return false;
     }
   }
-  return true;
+  return GroupPoints->SpinBox_DX->isValid( msg, !IsPreview() );
 }
 
 //=================================================================================
@@ -295,8 +295,12 @@ bool TransformationGUI_OffsetDlg::execute( ObjectList& objects )
     for ( int i = 0; i < myObjects.length(); i++ ) {
       
       anObj = GEOM::GEOM_ITransformOperations::_narrow( getOperation() )->OffsetShapeCopy( myObjects[i], GetOffset() );
-      if ( !anObj->_is_nil() )
+      if ( !anObj->_is_nil() ) {
+        if(!IsPreview()) {
+          anObj->SetParameters(GroupPoints->SpinBox_DX->text().toLatin1().constData());
+        }
        objects.push_back( anObj._retn() );
+      }
     }
   }
   else {