fix a precedence order problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user