mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
Fix shrink size computation.
I don't get how this could possibly ever have worked.
This commit is contained in:
parent
983c16d991
commit
601d67988d
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue