-
- if (GroupPoints->CheckButton1->isChecked() || IsPreview())
- for (int i = 0; i < myObjects.length(); i++)
- {
- anObj = GEOM::GEOM_ITransformOperations::_narrow( getOperation() )->OffsetShapeCopy( myObjects[i], GetOffset() );
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
- }
- else
- for (int i = 0; i < myObjects.length(); i++)
- {
- anObj = GEOM::GEOM_ITransformOperations::_narrow( getOperation() )->OffsetShape( myObjects[i], GetOffset() );
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
- }
-
+ if ( GroupPoints->CheckButton1->isChecked() || IsPreview() ) {
+ for ( int i = 0; i < myObjects.length(); i++ ) {
+
+ anObj = GEOM::GEOM_ITransformOperations::_narrow( getOperation() )->OffsetShapeCopy( myObjects[i], GetOffset() );
+ if ( !anObj->_is_nil() )
+ objects.push_back( anObj._retn() );
+ }
+ }
+ else {
+ for ( int i = 0; i < myObjects.length(); i++ ) {
+ anObj = GEOM::GEOM_ITransformOperations::_narrow( getOperation() )->OffsetShape( myObjects[i], GetOffset() );
+ if ( !anObj->_is_nil() )
+ objects.push_back( anObj._retn() );
+ }
+ }