diff --git a/src/gui/widget/numberpicker.cc b/src/gui/widget/numberpicker.cc index 921dcd6b..c5b44ce3 100644 --- a/src/gui/widget/numberpicker.cc +++ b/src/gui/widget/numberpicker.cc @@ -1370,7 +1370,7 @@ void NumberPicker::ensureCachedScrollSelectorValue(int selectorIndex) { std::map& cache = mSelectorIndexToStringCache; auto itr= cache.find(selectorIndex); - if (itr != cache.end()) return; + if (itr == cache.end()) return; if (selectorIndex < mMinValue || selectorIndex > mMaxValue) { scrollSelectorValue = "";