summaryrefslogtreecommitdiffstats
path: root/gui/listbox.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2015-10-22 21:17:47 +0200
committerEthan Yonker <dees_troy@teamw.in>2015-10-25 00:36:24 +0200
commitd0514ba8064513864469906b19d1c055e6c3b481 (patch)
tree9ebd80e948650b21e0432b87bdb4ac3fa94f2f93 /gui/listbox.cpp
parentfix build in Omni 4.4 (diff)
downloadandroid_bootable_recovery-d0514ba8064513864469906b19d1c055e6c3b481.tar
android_bootable_recovery-d0514ba8064513864469906b19d1c055e6c3b481.tar.gz
android_bootable_recovery-d0514ba8064513864469906b19d1c055e6c3b481.tar.bz2
android_bootable_recovery-d0514ba8064513864469906b19d1c055e6c3b481.tar.lz
android_bootable_recovery-d0514ba8064513864469906b19d1c055e6c3b481.tar.xz
android_bootable_recovery-d0514ba8064513864469906b19d1c055e6c3b481.tar.zst
android_bootable_recovery-d0514ba8064513864469906b19d1c055e6c3b481.zip
Diffstat (limited to '')
-rw-r--r--gui/listbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/listbox.cpp b/gui/listbox.cpp
index be2b48698..0a53a7c88 100644
--- a/gui/listbox.cpp
+++ b/gui/listbox.cpp
@@ -158,7 +158,7 @@ int GUIListBox::NotifyVarChange(const std::string& varName, const std::string& v
if (mVisibleItemsOld != mVisibleItems) {
mUpdate = 1; // some item's visibility has changed
- if (firstDisplayedItem >= mVisibleItems.size()) {
+ if (firstDisplayedItem >= (int)mVisibleItems.size()) {
// all items in the view area were removed - make last item visible
SetVisibleListLocation(mVisibleItems.empty() ? 0 : mVisibleItems.size()-1);
}