[ 1273159 ] logical vs. bitwise operators, part 2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -84,7 +84,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
|
||||
}
|
||||
};
|
||||
|
||||
wxASSERT_MSG( !(style & wxSL_VERTICAL) | !(style & wxSL_HORIZONTAL),
|
||||
wxASSERT_MSG( !(style & wxSL_VERTICAL) || !(style & wxSL_HORIZONTAL),
|
||||
_T("incompatible slider direction and orientation") );
|
||||
|
||||
if ( !wxControl::Create(parent, id, pos, size, style, validator, name) )
|
||||
@@ -365,7 +365,7 @@ wxSize wxSlider::DoGetBestSize() const
|
||||
textwidth = maxtwidth;
|
||||
}
|
||||
else {
|
||||
textwidth = mintwidth;
|
||||
textwidth = mintwidth;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -421,7 +421,7 @@ void wxSlider::DoSetSize(int x, int y, int w, int h, int sizeFlags)
|
||||
GetTextExtent(text, &minValWidth, &textheight);
|
||||
text.Printf(wxT("%d"), ValueInvertOrNot( m_rangeMax ) );
|
||||
GetTextExtent(text, &maxValWidth, &ht);
|
||||
|
||||
|
||||
if(ht > textheight) {
|
||||
textheight = ht;
|
||||
}
|
||||
|
@@ -188,7 +188,7 @@ wxSlider::Create(wxWindow *parent,
|
||||
}
|
||||
};
|
||||
|
||||
wxASSERT_MSG( !(style & wxSL_VERTICAL) | !(style & wxSL_HORIZONTAL),
|
||||
wxASSERT_MSG( !(style & wxSL_VERTICAL) || !(style & wxSL_HORIZONTAL),
|
||||
_T("incompatible slider direction and orientation") );
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user