make if-case for empty partition table alignment clearer

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1140823
This commit is contained in:
Volker Lanz 2010-06-21 15:33:38 +00:00
parent 84699a502f
commit a509ad8ee4
1 changed files with 3 additions and 3 deletions

View File

@ -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