From 14a6d07b59527d75e8d4eb4dd678ec06e81b5081 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 27 Sep 2016 14:17:01 +0300 Subject: [PATCH] Fixed issue #539. Infinite alert loop "Gradation doesn't support inches" when loading standard table. --HG-- branch : release --- ChangeLog.txt | 1 + src/app/valentina/mainwindow.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index 82eed9266..4cf1b7578 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -21,6 +21,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 8523d047c..73cb39066 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -402,6 +402,12 @@ bool MainWindow::LoadMeasurements(const QString &path) return false; } + if (qApp->patternUnit() == Unit::Inch && m->Type() == MeasurementsType::Standard) + { + qWarning()<<"Gradation doesn't support inches."; + return false; + } + if (m->Type() == MeasurementsType::Standard) { m->SetDataSize();