Salome HOME
#18963 Minimize compiler warnings
[modules/kernel.git] / src / SALOMEDSImpl / SALOMEDSImpl_AttributeGraphic.cxx
index e23121e0a88a0c96ef793411eddfca12d8b58228..cc8d3da8d73244daffaa45d4158302142d157524 100644 (file)
@@ -67,7 +67,7 @@ SALOMEDSImpl_AttributeGraphic::~SALOMEDSImpl_AttributeGraphic()
 void SALOMEDSImpl_AttributeGraphic::SetVisibility(const int theViewId,
                                                   const bool theValue )
 {
-  if ( myVisibility.find( theViewId ) != myVisibility.end() && myVisibility[theViewId] == theValue )
+  if ( myVisibility.find( theViewId ) != myVisibility.end() && ((bool)myVisibility[theViewId] == theValue) ) //!< TODO: comparing int and bool variables
     return;
 
   Backup();