fix Numberpicker::ensureCachedScrollSelectorValue

This commit is contained in:
houzh 2024-01-31 11:29:17 +08:00
parent e146830725
commit acad4f9258

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 (cahce.size()&&(itr != cache.end())) return;
if (selectorIndex < mMinValue || selectorIndex > mMaxValue) {
scrollSelectorValue = "";