OSDN Git Service
(root)
/
molby
/
Molby.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ff5e0d
)
Check wx version for wxUpdateUIEvent::IsCheckable()
author
Toshi Nagata
<alchemist.2005@nifty.com>
Tue, 27 Sep 2022 13:29:35 +0000
(22:29 +0900)
committer
Toshi Nagata
<alchemist.2005@nifty.com>
Tue, 27 Sep 2022 13:29:35 +0000
(22:29 +0900)
wxSources/MyApp.cpp
patch
|
blob
|
history
diff --git
a/wxSources/MyApp.cpp
b/wxSources/MyApp.cpp
index
cf883ec
..
0fee285
100755
(executable)
--- a/
wxSources/MyApp.cpp
+++ b/
wxSources/MyApp.cpp
@@
-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);