diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-09 20:17:26 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-03 17:02:24 +0200 |
| commit | 54834e1d2c739708ce677d32a8c2a887f9cb55bf (patch) | |
| tree | 6db7756d0f8deb29280701b9b27eb4a5808c7639 /src/wx/dcpomatic_choice.cc | |
| parent | bee00c5c4d015b69b770c699ff0bbcd72815fa13 (diff) | |
Add Choice::size().
Diffstat (limited to 'src/wx/dcpomatic_choice.cc')
| -rw-r--r-- | src/wx/dcpomatic_choice.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wx/dcpomatic_choice.cc b/src/wx/dcpomatic_choice.cc index 52aaa4fc4..c458296f6 100644 --- a/src/wx/dcpomatic_choice.cc +++ b/src/wx/dcpomatic_choice.cc @@ -159,3 +159,13 @@ Choice::clear() Clear(); } + +int +Choice::size() const +{ + if (_needs_clearing) { + return 0; + } + return GetCount(); +} + |
