From da9cf52bf2ba08985c4946f6d46f0c4a153d7678 Mon Sep 17 00:00:00 2001 From: Eike Hein Date: Thu, 23 May 2013 10:06:55 +0200 Subject: [PATCH] Fix build. --- plasma/applets/folderview/iconview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plasma/applets/folderview/iconview.cpp b/plasma/applets/folderview/iconview.cpp index f118f190cd..1ff14af16b 100644 --- a/plasma/applets/folderview/iconview.cpp +++ b/plasma/applets/folderview/iconview.cpp @@ -372,7 +372,7 @@ void IconView::updateGridSize() const int row = qBound(0, topLeft.y() / oldAdjustedGridSize.height(), lastRow); int col = topLeft.x() / oldAdjustedGridSize.width(); - if (m_flow == RightToLeft || m_flow == TopToBottomRightToLeft) { + if (m_alignment == Right) { col = lastCol - ((oldColCount - 1) - col); } @@ -395,7 +395,7 @@ void IconView::updateGridSize() cr.bottom() - size.height() - margin); int x = topLeft.x(); - if (m_flow == RightToLeft || m_flow == TopToBottomRightToLeft) { + if (m_alignment == Right) { x = cr.right() - qRound(scaleX * (cr.right() - x)); } else { x = scaleX * x;