]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/checkbox.cpp
Fix for wxTextCtrl::GetSelection for singel line controls in GTK2 mode
[wxWidgets.git] / src / gtk / checkbox.cpp
index c49c46ccff7f50aa87145e35bf9fc261cfdbdab1..fb6cc16c42240e068f141ca7763061784355a5fc 100644 (file)
@@ -220,7 +220,8 @@ void wxCheckBox::OnInternalIdle()
         }
     }
     
-    UpdateWindowUI();
+    if (wxUpdateUIEvent::CanUpdate(this))
+        UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
 }
 
 wxSize wxCheckBox::DoGetBestSize() const