Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quick optimization patch (bytearray for images)
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_LandCoverMapOp.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_LandCoverMapOp.cxx
b/src/HYDROGUI/HYDROGUI_LandCoverMapOp.cxx
index 6426928ffcc0abd1874e10baef2245f8a37ce0a3..16162cfbc943f4302de60bbe10895303f2cf1ca0 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_LandCoverMapOp.cxx
+++ b/
src/HYDROGUI/HYDROGUI_LandCoverMapOp.cxx
@@
-155,10
+155,12
@@
void HYDROGUI_LandCoverMapOp::abortOperation()
{
closePreview();
{
closePreview();
+ bool aNoActiveOps = module()->getActiveOperations().isEmpty();
+
HYDROGUI_Operation::abortOperation();
SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( module()->getApp()->activeStudy() );
HYDROGUI_Operation::abortOperation();
SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( module()->getApp()->activeStudy() );
- if ( aStudy )
+ if ( aStudy
&& !aNoActiveOps
)
module()->update( UF_OCCViewer | UF_FitAll );
}
module()->update( UF_OCCViewer | UF_FitAll );
}
@@
-374,6
+376,9
@@
bool HYDROGUI_LandCoverMapOp::processApply( int& theUpdateFlags,
if ( myOperationId == CreateLandCoverMapId )
module()->enableLCMActions();
if ( myOperationId == CreateLandCoverMapId )
module()->enableLCMActions();
+ if ( myOperationId == RemoveLandCoverId || myOperationId == MergeLandCoverId || myOperationId == ChangeLandCoverTypeId )
+ aPanel->updateSelectedLandCoversLabel( getNbSelected() );
+
return true;
}
return true;
}