Fix shrink size computation.

I don't get how this could possibly ever have worked.
This commit is contained in:
Teo Mrnjavac 2016-01-13 18:23:50 +01:00
parent 983c16d991
commit 601d67988d

View File

@ -540,7 +540,8 @@ ChoicePage::doAlongsideApply()
{
qint64 firstSector = candidate->firstSector();
qint64 oldLastSector = candidate->lastSector();
qint64 newLastSector = m_afterPartitionSplitterWidget->splitPartitionSize() /
qint64 newLastSector = firstSector +
m_afterPartitionSplitterWidget->splitPartitionSize() /
dev->logicalSectorSize();
m_core->resizePartition( dev, candidate, firstSector, newLastSector );