OSDN Git Service

Check wx version for wxUpdateUIEvent::IsCheckable()
authorToshi Nagata <alchemist.2005@nifty.com>
Tue, 27 Sep 2022 13:29:35 +0000 (22:29 +0900)
committerToshi Nagata <alchemist.2005@nifty.com>
Tue, 27 Sep 2022 13:29:35 +0000 (22:29 +0900)
wxSources/MyApp.cpp

index cf883ec..0fee285 100755 (executable)
@@ -1170,7 +1170,11 @@ MyApp::OnUpdateUI(wxUpdateUIEvent& event)
                checked = -1;
                title = NULL;
                enabled = Ruby_UpdateUI(index, mol, &checked, &title);
-               if (checked >= 0 && event.IsCheckable())
+               if (checked >= 0
+#if wxCHECK_VERSION(3,2,0)
+            && event.IsCheckable()
+#endif
+            )
                        event.Check(checked != 0);
                if (title != NULL) {
                        wxString wtext(title, WX_DEFAULT_CONV);