Skip to content

Commit

Permalink
fix(dsimplelistview): painting item is incomplete.
Browse files Browse the repository at this point in the history
Change-Id: Icca19bdc1ca123383cb5e7e31687da79b7ec836a
  • Loading branch information
rekols committed Mar 1, 2018
1 parent 425d82b commit a268fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/dsimplelistview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ void DSimpleListView::paintEvent(QPaintEvent *)

int rowCounter = 0;
for (DSimpleListItem *item:*d->renderItems) {
if (rowCounter > ((d->renderOffset - d->rowHeight) / d->rowHeight)) {
if (rowCounter >= d->renderOffset / d->rowHeight) {
// Clip item rect.
QPainterPath itemPath;
itemPath.addRect(QRect(0, renderY + rowCounter * d->rowHeight - d->renderOffset, rect().width(), d->rowHeight));
Expand Down

0 comments on commit a268fab

Please sign in to comment.