{
closePreview();
+ bool aNoActiveOps = module()->getActiveOperations().isEmpty();
+
HYDROGUI_Operation::abortOperation();
SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( module()->getApp()->activeStudy() );
- if ( aStudy )
+ if ( aStudy && !aNoActiveOps )
module()->update( UF_OCCViewer | UF_FitAll );
}
if ( myOperationId == CreateLandCoverMapId )
module()->enableLCMActions();
+ if ( myOperationId == RemoveLandCoverId || myOperationId == MergeLandCoverId || myOperationId == ChangeLandCoverTypeId )
+ aPanel->updateSelectedLandCoversLabel( getNbSelected() );
+
return true;
}
if ( !aCtx.IsNull() )
{
myPolylineFacePreviewPrs = new HYDROGUI_Shape( aCtx, NULL, getPreviewZLayer() );
- aCtx->ClearSelected();
+ aCtx->ClearSelected(true);
myPolylineFacePreviewPrs->setBorderColor( Qt::white, false, false );
myPolylineFacePreviewPrs->setShape( aTopoDSShape, true, true, !aPolyline.IsNull() ? AIS_WireFrame : AIS_Shaded );
if ( !aViewer->isPreselectionEnabled() ) {
Handle(V3d_View) aView3d = aView->getViewPort()->getView();
if ( !aView3d.IsNull() ) {
- aCtx->MoveTo(myEndPnt.x(), myEndPnt.y(), aView3d);
+ aCtx->MoveTo(myEndPnt.x(), myEndPnt.y(), aView3d, true);
}
}