fix Numberpicker::ensureCachedScrollSelectorValue

This commit is contained in:
houzh 2024-01-31 11:33:19 +08:00
parent acad4f9258
commit 47cbfa7fdd

View File

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