From 009e028bb0587d009928de93488ec53e02052b3b Mon Sep 17 00:00:00 2001 From: Hug0 Date: Sun, 21 Aug 2022 10:48:36 +0200 Subject: [PATCH] fix icon view --- escher/src/icon_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/escher/src/icon_view.cpp b/escher/src/icon_view.cpp index 0637d62c67d..24918501f91 100644 --- a/escher/src/icon_view.cpp +++ b/escher/src/icon_view.cpp @@ -45,7 +45,7 @@ void IconView::drawRect(KDContext * ctx, KDRect rect) const { //We push the first 6 lines of the image so that they are truncated on the sides ctx->fillRectWithPixels(KDRect(6, 0, m_frame.width()-12, 1),pixelBuffer+6, nullptr); - ctx->fillRectWithPixels(KDRect(4, 1, m_frame.width()-8, 1),pixelBuffer+6+55, nullptr); + ctx->fillRectWithPixels(KDRect(4, 1, m_frame.width()-8, 1),pixelBuffer+4+55, nullptr); ctx->fillRectWithPixels(KDRect(3, 2, m_frame.width()-6, 1),pixelBuffer+3+(2*55), nullptr); ctx->fillRectWithPixels(KDRect(2, 3, m_frame.width()-4, 1),pixelBuffer+2+(3*55), nullptr); ctx->fillRectWithPixels(KDRect(1, 4, m_frame.width()-2, 1),pixelBuffer+1+(4*55), nullptr);