- // TODO ISSUE #228: set the shape ("aShape") to the polyline
- // anIsOk = aPolyline->setShape( aShape );
+ anIsOk = aPolyline->ImportShape( aShape );
+
+ /* TODO: check it before start operation
+ if ( anIsOk && !aPolyline->IsEditable() )
+ {
+ anIsOk = SUIT_MessageBox::question( module()->getApp()->desktop(),
+ tr( "POLYLINE_IS_UNRECOGNIZED_TLT" ),
+ tr( "POLYLINE_IS_UNRECOGNIZED_MSG" ),
+ QMessageBox::Yes | QMessageBox::No,
+ QMessageBox::No ) == QMessageBox::Yes;
+ setPrintErrorMessage( anIsOk );
+ }
+ */