mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
Don't round size estimate down to an int.
This commit is contained in:
parent
5f3e5bf372
commit
aaeb28e45e
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
if ( items[ row ].size < 0.01 * total ) // If this item is smaller than 1% of everything,
|
||||||
{ // force its width to 1%.
|
{ // force its width to 1%.
|
||||||
adjustedTotal -= items[ row ].size;
|
adjustedTotal -= items[ row ].size;
|
||||||
items[ row ].size = qRound( 0.01 * total );
|
items[ row ].size = 0.01 * total;
|
||||||
adjustedTotal += items[ row ].size;
|
adjustedTotal += items[ row ].size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue