actually use the calculated value, snappedFirst and don't calc it again
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1083355
This commit is contained in:
parent
8ecc3ccdf3
commit
e7d7283a22
|
@ -352,7 +352,7 @@ bool PartitionTable::snap(const Device& d, Partition& p, const Partition* origin
|
|||
qint64 snappedFirst = p.firstSector() - delta;
|
||||
|
||||
// Now if the cylinder boundary at the front is occupied...
|
||||
if (!canSnapToSector(d, p, p.firstSector() - delta, originalPartition))
|
||||
if (!canSnapToSector(d, p, snappedFirst, originalPartition))
|
||||
{
|
||||
// ... move to the cylinder towards the end of the device ...
|
||||
snappedFirst += d.cylinderSize();
|
||||
|
|
Loading…
Reference in New Issue