summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wx/dcpomatic_choice.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wx/dcpomatic_choice.cc b/src/wx/dcpomatic_choice.cc
index 5b3b9fb48..270ab72ad 100644
--- a/src/wx/dcpomatic_choice.cc
+++ b/src/wx/dcpomatic_choice.cc
@@ -144,6 +144,9 @@ Choice::get() const
optional<string>
Choice::get_data() const
{
+ if (size() == 0) {
+ return {};
+ }
auto index = get();
if (!index) {