#include <OCCViewer_ViewManager.h>
+#include <SalomeApp_Study.h>
#include <LightApp_Application.h>
#include <LightApp_SelectionMgr.h>
#include <LightApp_DataOwner.h>
{
closePreview();
+ bool aNoActiveOps = module()->getActiveOperations().isEmpty();
+
HYDROGUI_Operation::abortOperation();
- module()->update( UF_OCCViewer | UF_FitAll );
+ SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( module()->getApp()->activeStudy() );
+ if ( aStudy && !aNoActiveOps )
+ module()->update( UF_OCCViewer | UF_FitAll );
}
void HYDROGUI_LandCoverMapOp::commitOperation()
if ( myOperationId == CreateLandCoverMapId )
module()->enableLCMActions();
+ if ( myOperationId == RemoveLandCoverId || myOperationId == MergeLandCoverId || myOperationId == ChangeLandCoverTypeId )
+ aPanel->updateSelectedLandCoversLabel( getNbSelected() );
+
return true;
}