Fix shrink size computation.
I don't get how this could possibly ever have worked.
This commit is contained in:
parent
983c16d991
commit
601d67988d
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user