From: Vadim Zeitlin Date: Fri, 30 Sep 2011 15:26:39 +0000 (+0000) Subject: Fix the comparison direction in wxTextAttr::BitlistsEqPartial(). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/54c730a94f52384089252639f2fd9557d1dbc15f Fix the comparison direction in wxTextAttr::BitlistsEqPartial(). The comparison was apparently reversed. Closes #13521. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/textcmn.cpp b/src/common/textcmn.cpp index 76b0916d21..d64baccfb7 100644 --- a/src/common/textcmn.cpp +++ b/src/common/textcmn.cpp @@ -773,7 +773,7 @@ bool wxTextAttr::BitlistsEqPartial(int valueA, int valueB, int flags) { int relevantBitsA = valueA & flags; int relevantBitsB = valueB & flags; - return (relevantBitsA != relevantBitsB); + return relevantBitsA == relevantBitsB; } /// Split into paragraph and character styles