fix another logic error in PresentationInfo::flag_match()
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 4 Jul 2016 16:44:20 +0000 (12:44 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 4 Jul 2016 16:45:53 +0000 (12:45 -0400)
libs/ardour/ardour/presentation_info.h

index 91238e6537d0fb840453ff6b7f2c9ade33a68886..6ef0fae7bb6e7dc24e3e2ad177404784cac68fd7 100644 (file)
@@ -208,7 +208,7 @@ class LIBARDOUR_API PresentationInfo : public PBD::Stateful
                /* compare without status mask - we already checked that above 
                 */
 
                /* 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);
        }
 
        int set_state (XMLNode const&, int);