From 4376b9ab48c94d14b2e7a8570458e8ed8a4871ec Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 3 Feb 2021 17:13:28 +0200 Subject: [PATCH] Placeholder %size% has incorrect value. --- ChangeLog.txt | 3 +++ src/app/valentina/mainwindow.cpp | 10 +++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 3938fc4cb..beb832f42 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -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. diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 398a01f6c..468f468dd 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -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: