summaryrefslogtreecommitdiff
path: root/src/wx/dcpomatic_choice.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/dcpomatic_choice.cc')
-rw-r--r--src/wx/dcpomatic_choice.cc10
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();
+}
+