From a509ad8ee4cc03818416bbdab9ca9c4550d561f5 Mon Sep 17 00:00:00 2001 From: Volker Lanz Date: Mon, 21 Jun 2010 15:33:38 +0000 Subject: [PATCH] make if-case for empty partition table alignment clearer svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1140823 --- src/core/partitiontable.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/partitiontable.cpp b/src/core/partitiontable.cpp index c280572..39d1d22 100644 --- a/src/core/partitiontable.cpp +++ b/src/core/partitiontable.cpp @@ -439,9 +439,9 @@ bool PartitionTable::isSectorBased() const { if (type() == PartitionTable::msdos) { - // user has turned cylinder based alignment off and partition table is empty - if (Config::useCylinderAlignment() == false && numPrimaries() == 0) - return true; + // return configured default for empty partition tables + if (numPrimaries() == 0) + return !Config::useCylinderAlignment(); // if not all partitions start at a point evenly divisable by sectorAlignment it's // a cylinder-aligned msdos partition table