From: Robin Dunn Date: Thu, 29 May 2003 20:30:54 +0000 (+0000) Subject: fix a precedence order problem X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/feddd867de4b584685d58bd013ea84a4854745ca?ds=inline fix a precedence order problem git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/notebmac.cpp b/src/mac/carbon/notebmac.cpp index e6ef6104a0..2f60ca89c5 100644 --- a/src/mac/carbon/notebmac.cpp +++ b/src/mac/carbon/notebmac.cpp @@ -96,7 +96,7 @@ static inline int wxMacTabMargin(long nbStyle, long side) // but we have to special case wxNB_TOP since it is zero... if ( side == wxNB_TOP) { - if ( nbStyle != 0 && nbStyle & wxNB_LEFT|wxNB_RIGHT|wxNB_BOTTOM) + if ( nbStyle != 0 && nbStyle & (wxNB_LEFT|wxNB_RIGHT|wxNB_BOTTOM)) { return otherMargin; } diff --git a/src/mac/notebmac.cpp b/src/mac/notebmac.cpp index e6ef6104a0..2f60ca89c5 100644 --- a/src/mac/notebmac.cpp +++ b/src/mac/notebmac.cpp @@ -96,7 +96,7 @@ static inline int wxMacTabMargin(long nbStyle, long side) // but we have to special case wxNB_TOP since it is zero... if ( side == wxNB_TOP) { - if ( nbStyle != 0 && nbStyle & wxNB_LEFT|wxNB_RIGHT|wxNB_BOTTOM) + if ( nbStyle != 0 && nbStyle & (wxNB_LEFT|wxNB_RIGHT|wxNB_BOTTOM)) { return otherMargin; }