Either count new partitions or existing partitions for colors.

This commit is contained in:
Teo Mrnjavac 2015-04-26 12:07:17 +02:00
parent bd6c813e4e
commit 9065882da4

View File

@ -92,9 +92,12 @@ colorForPartition( Partition* partition )
break;
if ( !PMUtils::isPartitionFreeSpace( child ) &&
!child->hasChildren() )
++colorIdx;
if ( PMUtils::isPartitionNew( child ) )
++newColorIdx;
{
if ( PMUtils::isPartitionNew( child ) )
++newColorIdx;
else
++colorIdx;
}
}
if ( PMUtils::isPartitionNew( partition ) )