From: Paul Davis Date: Mon, 4 Jul 2016 16:44:20 +0000 (-0400) Subject: fix another logic error in PresentationInfo::flag_match() X-Git-Tag: 5.0-pre1~340 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=5c32fc3babdd3ed7d715b6aeb24a72f3a0f550a0 fix another logic error in PresentationInfo::flag_match() --- diff --git a/libs/ardour/ardour/presentation_info.h b/libs/ardour/ardour/presentation_info.h index 91238e6537..6ef0fae7bb 100644 --- a/libs/ardour/ardour/presentation_info.h +++ b/libs/ardour/ardour/presentation_info.h @@ -208,7 +208,7 @@ class LIBARDOUR_API PresentationInfo : public PBD::Stateful /* compare without status mask - we already checked that above */ - return (f &~ (StatusMask|OrderSet)) == (_flags &~ (StatusMask|OrderSet)); + return (_flags & (f &~ (StatusMask|OrderSet))) != 0; /* some flag matches */ } int set_state (XMLNode const&, int);