From bf1e4aeb0c803b86d55fb60014ee6605e8bd3eb1 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 27 Sep 2016 14:18:08 +0300 Subject: [PATCH] Fixed issue #539. Infinite alert loop "Gradation doesn't support inches" when loading standard table. (grafted from 9e1dee53ca8fb5d116359f9aff4b62220a10bb39) --HG-- branch : develop --- ChangeLog.txt | 1 + src/app/valentina/mainwindow.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index fa362ec19..19b8a74e6 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -64,6 +64,7 @@ - Called the main app in console mode doesn't show opening file error in some cases. - [#553] Tape.exe crash. Issue with the Search field. - [#569] Tape app. Options that open new file open new instance even if a user doesn't want this. +- [#539] Infinite alert loop "Gradation doesn't support inches" when loading standard table. # Version 0.4.4 April 12, 2016 - Updated measurement templates with all measurements. Added new template Aldrich/Women measurements. diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 5be170aaf..a45d2ab8f 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -446,6 +446,12 @@ bool MainWindow::LoadMeasurements(const QString &path) return false; } + if (qApp->patternUnit() == Unit::Inch && m->Type() == MeasurementsType::Standard) + { + qWarning()<Type() == MeasurementsType::Standard) { m->SetDataSize();