From 601d67988dba11c97e9b1d504282a2f069e956d4 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 13 Jan 2016 18:23:50 +0100 Subject: [PATCH] Fix shrink size computation. I don't get how this could possibly ever have worked. --- src/modules/partition/gui/ChoicePage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 4221d15eb..9aa6abf0e 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -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 );