From 35eb6ac5636fa07b0fa995030c476999aaa0ff2b Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Wed, 18 Jan 2017 09:30:32 +0100 Subject: [PATCH] Fix mistake in combobox selection --- Aquaria/AquariaComboBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aquaria/AquariaComboBox.cpp b/Aquaria/AquariaComboBox.cpp index f06c018..750c330 100644 --- a/Aquaria/AquariaComboBox.cpp +++ b/Aquaria/AquariaComboBox.cpp @@ -310,7 +310,7 @@ void AquariaComboBox::setSelectedItem(int index) { doScroll(0); } - else if(index > 0) + else if(index < items.size()) { if ((size_t) index < items.size()) {