From: asl Date: Tue, 17 Nov 2015 09:24:32 +0000 (+0300) Subject: refs #704: the land cover map can not be colored to the global filling color via... X-Git-Tag: v1.5~29^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=307b568482e84dfda4ffdc1df87ce14c53aa04a6;p=modules%2Fhydro.git refs #704: the land cover map can not be colored to the global filling color via GUI command --- diff --git a/src/HYDROGUI/HYDROGUI_SetColorOp.cxx b/src/HYDROGUI/HYDROGUI_SetColorOp.cxx index ca292846..840d2194 100644 --- a/src/HYDROGUI/HYDROGUI_SetColorOp.cxx +++ b/src/HYDROGUI/HYDROGUI_SetColorOp.cxx @@ -50,15 +50,11 @@ bool HYDROGUI_SetColorOp::CanObjectBeColored( const Handle(HYDROData_Entity)& th if ( theObject.IsNull() ) return false; - bool isCanBeColored = false; - if ( theObject->IsKind( STANDARD_TYPE(HYDROData_LandCoverMap) ) ) { - size_t anActiveViewId = HYDROGUI_Tool::GetActiveOCCViewId( theModule ); - isCanBeColored = !theModule->isLandCoversScalarMapModeOn( anActiveViewId ); - } + bool isCanBeColored = + theObject->IsKind( STANDARD_TYPE(HYDROData_Object) ) || + theObject->IsKind( STANDARD_TYPE(HYDROData_IPolyline) ); - return isCanBeColored || - theObject->IsKind( STANDARD_TYPE(HYDROData_Object) ) || - theObject->IsKind( STANDARD_TYPE(HYDROData_IPolyline) ); + return isCanBeColored; } void HYDROGUI_SetColorOp::startOperation()