X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80372768e4d745c399274616fafd1e41c915d5c2..4c3b4ed07f8d33e70baa4e66ca43dd0ab834578b:/samples/splitter/splitter.cpp diff --git a/samples/splitter/splitter.cpp b/samples/splitter/splitter.cpp index 2cec8e6c8d..2c956b311e 100644 --- a/samples/splitter/splitter.cpp +++ b/samples/splitter/splitter.cpp @@ -245,7 +245,9 @@ void MyFrame::SetMinSize(wxCommandEvent& WXUNUSED(event) ) void MyFrame::UpdateUIHorizontal(wxUpdateUIEvent& event) { - event.Enable( ( (!m_splitter->IsSplit()) || (m_splitter->GetSplitMode() != wxSPLIT_HORIZONTAL) ) ); + bool foo = ( (!m_splitter->IsSplit()) || (m_splitter->GetSplitMode() != wxSPLIT_HORIZONTAL) ); + if( !foo ) + event.Enable( foo ); } void MyFrame::UpdateUIVertical(wxUpdateUIEvent& event)