Don't init *modelIndex to INT_MAX
Makes no sense since we're not doing any qMin and the calling function also accepts any index >= 0 as valid
so in some cases it may end up wanting to create an index that doesn't exist
commitc027a90efb20ea76b7b9c3370e424824e55bbe1b
authorAlbert Astals <albert.astals@canonical.com>
dateWed 15 Jan 2014, 15:16 (13 years ago)
parent1059f9b
plugins/DashViews/verticaljournal.cpp+1−1
@@ -79,7 +79,7 @@ void VerticalJournal::findBottomModelIndexToAdd(int *modelIndex, qreal *yPos)
7979
8080void VerticalJournal::findTopModelIndexToAdd(int *modelIndex, qreal *yPos)
8181{
82− *modelIndex = INT_MAX;
82+ *modelIndex = 0;
8383 *yPos = std::numeric_limits<qreal>::lowest();
8484 int columnToAddTo = -1;
8585