mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 02:45:37 -04:00
Document properly.
This commit is contained in:
parent
08f9753aa2
commit
80d908e75b
1 changed files with 2 additions and 2 deletions
|
@ -479,8 +479,8 @@ PartitionBarsView::computeItemsVector( const QModelIndex& parent ) const
|
||||||
qreal adjustedTotal = total;
|
qreal adjustedTotal = total;
|
||||||
for ( int row = 0; row < count; ++row )
|
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;
|
adjustedTotal -= items[ row ].size;
|
||||||
items[ row ].size = qRound( 0.01 * total );
|
items[ row ].size = qRound( 0.01 * total );
|
||||||
adjustedTotal += items[ row ].size;
|
adjustedTotal += items[ row ].size;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue