fix Numberpicker::ensureCachedScrollSelectorValue

This commit is contained in:
houzh 2024-01-31 11:26:10 +08:00
parent e0549f562a
commit e146830725

View File

@ -1370,7 +1370,7 @@ void NumberPicker::ensureCachedScrollSelectorValue(int selectorIndex) {
std::map<int,std::string>& cache = mSelectorIndexToStringCache;
auto itr= cache.find(selectorIndex);
if (itr != cache.end()) return;
if (itr == cache.end()) return;
if (selectorIndex < mMinValue || selectorIndex > mMaxValue) {
scrollSelectorValue = "";