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:
Volker Lanz 2010-02-01 09:08:33 +00:00
parent 8ecc3ccdf3
commit e7d7283a22
1 changed files with 1 additions and 1 deletions

View File

@ -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();