From d3a9b6a3315d22513177707a20c9486d391f4dce Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 7 Oct 2013 09:59:01 +0000 Subject: [PATCH] Make the test for wxBUFFER_VIRTUAL_AREA in wxBufferedDC code more clear. While "!a & b" is the same as "!(a & b)" when "b" is a single bit, the latter is much more standard and more clear, so write this test (added in r71704) like this. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dcbufcmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/dcbufcmn.cpp b/src/common/dcbufcmn.cpp index 0018c15968..3bc2e275ed 100644 --- a/src/common/dcbufcmn.cpp +++ b/src/common/dcbufcmn.cpp @@ -148,7 +148,7 @@ void wxBufferedDC::UnMask() int width = m_area.GetWidth(), height = m_area.GetHeight(); - if (! m_style & wxBUFFER_VIRTUAL_AREA) + if (!(m_style & wxBUFFER_VIRTUAL_AREA)) { int widthDC, heightDC;