From 0e4202843d6a75fe6c0989ba5f412fdd0bbc6809 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 4 Sep 2010 17:01:24 +0000 Subject: [PATCH] The row-count cannot be 0 at this part of the code. svn path=/trunk/KDE/kdebase/apps/; revision=1171602 --- src/views/dolphindetailsview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/dolphindetailsview.cpp b/src/views/dolphindetailsview.cpp index 243debb1b..585671e4c 100644 --- a/src/views/dolphindetailsview.cpp +++ b/src/views/dolphindetailsview.cpp @@ -754,7 +754,7 @@ void DolphinDetailsView::resizeColumns() if (columnWidth[KDirModel::Name] < minNameWidth) { columnWidth[KDirModel::Name] = minNameWidth; - if ((rowCount > 0) && (rowCount < maxRowCount)) { + if (rowCount < maxRowCount) { // Try to decrease the name column width without clipping any text const int nameWidth = sizeHintForColumn(DolphinModel::Name); if (nameWidth + requiredWidth <= viewport()->width()) { -- 2.47.3