let's not forget that \& has lower priority than == in C
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -61,7 +61,8 @@ static void gtk_slider_callback( GtkAdjustment *adjust, wxSlider *win )
|
|||||||
int value = (int)ceil(adjust->value);
|
int value = (int)ceil(adjust->value);
|
||||||
|
|
||||||
int orient = wxHORIZONTAL;
|
int orient = wxHORIZONTAL;
|
||||||
if (win->GetWindowStyleFlag() & wxSB_VERTICAL == wxSB_VERTICAL) orient = wxVERTICAL;
|
if ( (win->GetWindowStyleFlag() & wxSB_VERTICAL) == wxSB_VERTICAL)
|
||||||
|
orient = wxVERTICAL;
|
||||||
|
|
||||||
wxScrollEvent event( command, win->GetId(), value, orient );
|
wxScrollEvent event( command, win->GetId(), value, orient );
|
||||||
event.SetEventObject( win );
|
event.SetEventObject( win );
|
||||||
|
@@ -61,7 +61,8 @@ static void gtk_slider_callback( GtkAdjustment *adjust, wxSlider *win )
|
|||||||
int value = (int)ceil(adjust->value);
|
int value = (int)ceil(adjust->value);
|
||||||
|
|
||||||
int orient = wxHORIZONTAL;
|
int orient = wxHORIZONTAL;
|
||||||
if (win->GetWindowStyleFlag() & wxSB_VERTICAL == wxSB_VERTICAL) orient = wxVERTICAL;
|
if ( (win->GetWindowStyleFlag() & wxSB_VERTICAL) == wxSB_VERTICAL)
|
||||||
|
orient = wxVERTICAL;
|
||||||
|
|
||||||
wxScrollEvent event( command, win->GetId(), value, orient );
|
wxScrollEvent event( command, win->GetId(), value, orient );
|
||||||
event.SetEventObject( win );
|
event.SetEventObject( win );
|
||||||
|
Reference in New Issue
Block a user