From 0127b27c595ade64c89bcf287bdc2ed746ed1993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=AF=E6=AD=8C?= Date: Fri, 5 Jul 2024 12:40:08 +0800 Subject: [PATCH] fix ViewInfoStore::addToPreLayout --- src/gui/widgetEx/recyclerview/viewinfostore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widgetEx/recyclerview/viewinfostore.cc b/src/gui/widgetEx/recyclerview/viewinfostore.cc index 8a1d705e..01c9fd38 100755 --- a/src/gui/widgetEx/recyclerview/viewinfostore.cc +++ b/src/gui/widgetEx/recyclerview/viewinfostore.cc @@ -12,7 +12,7 @@ void ViewInfoStore::clear() { void ViewInfoStore::addToPreLayout(RecyclerView::ViewHolder* holder, RecyclerView::ItemAnimator::ItemHolderInfo* info) { InfoRecord* record = nullptr;//mLayoutHolderMap.get(holder); auto it = mLayoutHolderMap.find(holder); - if(it ==mLayoutHolderMap.end())record = it->second; + if(it !=mLayoutHolderMap.end())record = it->second; if (record == nullptr) { record = InfoRecord::obtain(); mLayoutHolderMap.insert({holder,record});//put(holder, record);