Fix boolean conversion

This commit is contained in:
Thomas Geymayer 2013-02-28 22:23:15 +01:00
parent 1240807b9f
commit 7dd83dd2d1

View File

@ -230,7 +230,7 @@ namespace canvas
//----------------------------------------------------------------------------
bool ODGauge::updateFlag(Flags flag, bool enable)
{
if( (_flags & flag) == enable )
if( bool(_flags & flag) == enable )
return false;
_flags ^= flag;