on xenial help sign in
If there are no items m_firstVisibleIndex has to be -1

. Approved by PS Jenkins bot, Michał Sawicz.

commit52b3bbfc5ba262b770f2411713abe46702a5110e authorAlbert Astals <albert.astals@canonical.com> dateFri 10 Jan 2014, 11:55 (13 years ago) parent057f9a29cc45d6
1 file changed+2−2
plugins/DashViews/horizontaljournal.cpp+2−2
plugins/DashViews/horizontaljournal.cpp+2−2
@@ -172,7 +172,7 @@ void HorizontalJournal::cleanupExistingItems()
172172 releaseItem(item);
173173 m_visibleItems.clear();
174174 m_lastInRowIndexPosition.clear();
175− m_firstVisibleIndex = 0;
175+ m_firstVisibleIndex = -1;
176176}
177177
178178void HorizontalJournal::calculateImplicitHeight()
@@ -241,7 +241,7 @@ void HorizontalJournal::doRelayout()
241241 }
242242 m_visibleItems.clear();
243243 m_lastInRowIndexPosition.clear();
244− m_firstVisibleIndex = 0;
244+ m_firstVisibleIndex = -1;
245245 }
246246}
247247