diff options
-rw-r--r-- | src/FbTk/Container.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/FbTk/Container.cc b/src/FbTk/Container.cc index 9ccae92..99afb75 100644 --- a/src/FbTk/Container.cc +++ b/src/FbTk/Container.cc | |||
@@ -94,6 +94,10 @@ void Container::insertItem(Item item, int pos) { | |||
94 | 94 | ||
95 | void Container::moveItem(Item item, int movement) { | 95 | void Container::moveItem(Item item, int movement) { |
96 | 96 | ||
97 | if (m_item_list.empty()) { | ||
98 | return; | ||
99 | } | ||
100 | |||
97 | int index = find(item); | 101 | int index = find(item); |
98 | const size_t size = m_item_list.size(); | 102 | const size_t size = m_item_list.size(); |
99 | 103 | ||