]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/splitter/splitter.cpp
Tools
[wxWidgets.git] / samples / splitter / splitter.cpp
index 2cec8e6c8d50291a4b184b0f71e82fe443b0ef67..2c956b311ec35a0404898f0ff0f94e260999f87f 100644 (file)
@@ -245,7 +245,9 @@ void MyFrame::SetMinSize(wxCommandEvent& WXUNUSED(event) )
 
 void MyFrame::UpdateUIHorizontal(wxUpdateUIEvent& 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)
 }
 
 void MyFrame::UpdateUIVertical(wxUpdateUIEvent& event)