From 307b568482e84dfda4ffdc1df87ce14c53aa04a6 Mon Sep 17 00:00:00 2001 From: asl Date: Tue, 17 Nov 2015 12:24:32 +0300 Subject: [PATCH] refs #704: the land cover map can not be colored to the global filling color via GUI command --- src/HYDROGUI/HYDROGUI_SetColorOp.cxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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() -- 2.39.2