Don't round size estimate down to an int.

This commit is contained in:
Teo Mrnjavac 2016-02-10 16:00:24 +01:00
parent 5f3e5bf372
commit aaeb28e45e

View File

@ -546,7 +546,7 @@ PartitionBarsView::computeItemsVector( const QModelIndex& parent ) const
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 );
items[ row ].size = 0.01 * total;
adjustedTotal += items[ row ].size;
}
}