diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-10 01:12:29 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-11 00:28:57 +0200 |
| commit | d9b398b33716d5f28fd8d6e22cb723c2fbb635a0 (patch) | |
| tree | b68ae47772dd1132c35dcdb3a6927dc4059cde84 /src/wx/wx_util.cc | |
| parent | a4d0c85dba60e2837814bd100547189b9a193fff (diff) | |
Hack to fix wxChoice heights on KDE (#2343).
Diffstat (limited to 'src/wx/wx_util.cc')
| -rw-r--r-- | src/wx/wx_util.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index d02eb3ca5..9d9d4c599 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -304,7 +304,7 @@ checked_set (wxChoice* widget, vector<pair<string, string>> items) current.push_back ( make_pair( wx_to_std(widget->GetString(i)), - string_client_data(widget->GetClientObject(i)) + widget->GetClientData() ? string_client_data(widget->GetClientObject(i)) : "" ) ); } @@ -724,3 +724,4 @@ report_config_load_failure(wxWindow* parent, Config::LoadFailure what) break; } } + |
