make if-case for empty partition table alignment clearer
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1140823
This commit is contained in:
parent
84699a502f
commit
a509ad8ee4
|
@ -439,9 +439,9 @@ bool PartitionTable::isSectorBased() const
|
||||||
{
|
{
|
||||||
if (type() == PartitionTable::msdos)
|
if (type() == PartitionTable::msdos)
|
||||||
{
|
{
|
||||||
// user has turned cylinder based alignment off and partition table is empty
|
// return configured default for empty partition tables
|
||||||
if (Config::useCylinderAlignment() == false && numPrimaries() == 0)
|
if (numPrimaries() == 0)
|
||||||
return true;
|
return !Config::useCylinderAlignment();
|
||||||
|
|
||||||
// if not all partitions start at a point evenly divisable by sectorAlignment it's
|
// if not all partitions start at a point evenly divisable by sectorAlignment it's
|
||||||
// a cylinder-aligned msdos partition table
|
// a cylinder-aligned msdos partition table
|
||||||
|
|
Loading…
Reference in New Issue