From: Peter Penz Date: Sat, 4 Sep 2010 17:01:24 +0000 (+0000) Subject: The row-count cannot be 0 at this part of the code. X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/0e4202843d6a75fe6c0989ba5f412fdd0bbc6809 The row-count cannot be 0 at this part of the code. svn path=/trunk/KDE/kdebase/apps/; revision=1171602 --- 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()) {