]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #704: the land cover map can not be colored to the global filling color via...
authorasl <asl@opencascade.com>
Tue, 17 Nov 2015 09:24:32 +0000 (12:24 +0300)
committerasl <asl@opencascade.com>
Tue, 17 Nov 2015 09:24:32 +0000 (12:24 +0300)
src/HYDROGUI/HYDROGUI_SetColorOp.cxx

index ca2928462591ac956741a17b99122ad092555c8e..840d219458d8244e9b174e979048257b98369dde 100644 (file)
@@ -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()