]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/static.cpp
fixing infinite recursion for rotated text, introduced in cleanup r57915
[wxWidgets.git] / samples / widgets / static.cpp
index 7987424ac1279d7b774e6b8964e07d4e0b30303a..463d40c2273c254222a648a4be8ea680e948771a 100644 (file)
@@ -499,7 +499,7 @@ void StaticWidgetsPage::OnButtonReset(wxCommandEvent& WXUNUSED(event))
 
 void StaticWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& event)
 {
-    if (event.GetEventObject() == wx_static_cast(wxObject*, m_chkEllipsize))
+    if (event.GetEventObject() == static_cast<wxObject*>(m_chkEllipsize))
     {
         m_radioEllipsize->Enable(event.IsChecked());
     }