]> git.saurik.com Git - wxWidgets.git/commitdiff
add missing parens to bitwise expression
authorPaul Cornett <paulcor@bullseye.com>
Fri, 20 Jul 2007 06:44:02 +0000 (06:44 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Fri, 20 Jul 2007 06:44:02 +0000 (06:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextctrl.cpp

index 71b83928427f8d2ec7e4a37c93dafb1853e5193f..e54db2ca1aae9c44253b703313862b6d3ced44df 100644 (file)
@@ -2039,7 +2039,7 @@ wxRichTextCtrl::HitTest(const wxPoint& pt,
         return wxTE_HT_BEFORE;
     else if ((hit & wxRICHTEXT_HITTEST_AFTER) && (hit & wxRICHTEXT_HITTEST_OUTSIDE))
         return wxTE_HT_BEYOND;
-    else if (hit & wxRICHTEXT_HITTEST_BEFORE|wxRICHTEXT_HITTEST_AFTER)
+    else if (hit & (wxRICHTEXT_HITTEST_BEFORE|wxRICHTEXT_HITTEST_AFTER))
         return wxTE_HT_ON_TEXT;
 
     return wxTE_HT_UNKNOWN;