From 54c730a94f52384089252639f2fd9557d1dbc15f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 30 Sep 2011 15:26:39 +0000 Subject: [PATCH] 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 --- src/common/textcmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2