diff --git a/src/modules/partition/core/ColorUtils.cpp b/src/modules/partition/core/ColorUtils.cpp index 4c099f363..a782c35a8 100644 --- a/src/modules/partition/core/ColorUtils.cpp +++ b/src/modules/partition/core/ColorUtils.cpp @@ -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 ) )