From e2ef71faf66aec138b31f3f5d6261ed847739372 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 10 May 2020 11:24:49 +0300 Subject: [PATCH] Fix default value for a export scale factor. (cherry picked from commit 1f310c2c2c25382a733ea33dcfda7f4e626251da) --- src/app/valentina/core/vcmdexport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/valentina/core/vcmdexport.cpp b/src/app/valentina/core/vcmdexport.cpp index e608db6c7..55aa4071d 100644 --- a/src/app/valentina/core/vcmdexport.cpp +++ b/src/app/valentina/core/vcmdexport.cpp @@ -412,7 +412,7 @@ bool VCommandLine::IsCSVWithHeader() const //--------------------------------------------------------------------------------------------------------------------- qreal VCommandLine::ExportXScale() const { - qreal xs = 0; + qreal xs = 1; if (IsOptionSet(LONG_OPTION_EXPXSCALE)) { xs = OptionValue(LONG_OPTION_EXPXSCALE).toDouble(); @@ -423,7 +423,7 @@ qreal VCommandLine::ExportXScale() const //--------------------------------------------------------------------------------------------------------------------- qreal VCommandLine::ExportYScale() const { - qreal ys = 0; + qreal ys = 1; if (IsOptionSet(LONG_OPTION_EXPYSCALE)) { ys = OptionValue(LONG_OPTION_EXPYSCALE).toDouble();