Placeholder %size% has incorrect value.

This commit is contained in:
Roman Telezhynskyi 2021-02-03 17:13:28 +02:00
parent 42e5c0be5b
commit 4376b9ab48
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,6 @@
# Version 0.7.44 (unreleased)
- Placeholder %size% has incorrect value.
# Version 0.7.43 Sun 31, 2021
- Improve Windows installer. Avoid crashing on checking if a program is still running.
- Fix regression. Changing dimension value caused an infinite loop.

View File

@ -2086,7 +2086,7 @@ void MainWindow::StoreMultisizeMDimensions()
{
if (dimensions.size() > index)
{
MeasurementDimension_p dimension = dimensions.at(index);
const MeasurementDimension_p& dimension = dimensions.at(index);
switch(dimension->Type())
{
@ -2102,11 +2102,15 @@ void MainWindow::StoreMultisizeMDimensions()
break;
}
case MeasurementDimension::W:
Q_FALLTHROUGH();
{
const bool fc = m->IsFullCircumference();
qApp->SetDimensionWaist(fc ? currentBase*2 : currentBase);
break;
}
case MeasurementDimension::Z:
{
const bool fc = m->IsFullCircumference();
qApp->SetDimensionSize(fc ? currentBase*2 : currentBase);
qApp->SetDimensionHip(fc ? currentBase*2 : currentBase);
break;
}
default: