]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/framecmn.cpp
reverted Julian's unintentional breakage of wxChoice
[wxWidgets.git] / src / common / framecmn.cpp
index 8bc2ffb5db650f512cc7343be534c2789b90109d..77d1c1e1c4ae9bac671b8fa4aceb18d676896402 100644 (file)
@@ -152,7 +152,7 @@ wxPoint wxFrameBase::GetClientAreaOrigin() const
 {
     wxPoint pt = wxTopLevelWindow::GetClientAreaOrigin();
 
 {
     wxPoint pt = wxTopLevelWindow::GetClientAreaOrigin();
 
-#if wxUSE_TOOLBAR
+#if wxUSE_TOOLBAR && !defined(__WXUNIVERSAL__)
     wxToolBar *toolbar = GetToolBar();
     if ( toolbar && toolbar->IsShown() )
     {
     wxToolBar *toolbar = GetToolBar();
     if ( toolbar && toolbar->IsShown() )
     {
@@ -196,6 +196,7 @@ bool wxFrameBase::ProcessCommand(int id)
         if (item->IsCheckable())
         {
             item->Toggle();
         if (item->IsCheckable())
         {
             item->Toggle();
+
             // use the new value
             commandEvent.SetInt(item->IsChecked());
         }
             // use the new value
             commandEvent.SetInt(item->IsChecked());
         }