don't add, subtract from the new first sector to make minimum size work

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1107491
This commit is contained in:
Volker Lanz 2010-03-25 19:58:35 +00:00
parent c5d4f57c83
commit 10efee63d1
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ bool PartResizerWidget::updateFirstSector(qint64 newFirstSector)
const qint64 newLength = partition().lastSector() - newFirstSector + 1;
if (newLength < minimumLength())
newFirstSector += minimumLength() - newLength;
newFirstSector -= minimumLength() - newLength;
if (newLength > maximumLength())
newFirstSector -= newLength - maximumLength();