From 80d908e75b7d1da45d294906706cacd1f59522f4 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 8 Jan 2016 18:09:19 +0100 Subject: [PATCH] Document properly. --- src/modules/partition/gui/PartitionBarsView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/partition/gui/PartitionBarsView.cpp b/src/modules/partition/gui/PartitionBarsView.cpp index a0e27cd88..91e685d58 100644 --- a/src/modules/partition/gui/PartitionBarsView.cpp +++ b/src/modules/partition/gui/PartitionBarsView.cpp @@ -479,8 +479,8 @@ PartitionBarsView::computeItemsVector( const QModelIndex& parent ) const qreal adjustedTotal = total; for ( int row = 0; row < count; ++row ) { - if ( items[ row ].size < 0.01 * total ) // if this item is smaller than 5% of everything - { + if ( items[ row ].size < 0.01 * total ) // If this item is smaller than 1% of everything, + { // force its width to 1%. adjustedTotal -= items[ row ].size; items[ row ].size = qRound( 0.01 * total ); adjustedTotal += items[ row ].size;