Fix default value for a export scale factor.

This commit is contained in:
Roman Telezhynskyi 2020-05-10 11:24:49 +03:00
parent 110ac969e9
commit 1f310c2c2c

View File

@ -412,7 +412,7 @@ bool VCommandLine::IsCSVWithHeader() const
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
qreal VCommandLine::ExportXScale() const qreal VCommandLine::ExportXScale() const
{ {
qreal xs = 0; qreal xs = 1;
if (IsOptionSet(LONG_OPTION_EXPXSCALE)) if (IsOptionSet(LONG_OPTION_EXPXSCALE))
{ {
xs = OptionValue(LONG_OPTION_EXPXSCALE).toDouble(); xs = OptionValue(LONG_OPTION_EXPXSCALE).toDouble();
@ -423,7 +423,7 @@ qreal VCommandLine::ExportXScale() const
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
qreal VCommandLine::ExportYScale() const qreal VCommandLine::ExportYScale() const
{ {
qreal ys = 0; qreal ys = 1;
if (IsOptionSet(LONG_OPTION_EXPYSCALE)) if (IsOptionSet(LONG_OPTION_EXPYSCALE))
{ {
ys = OptionValue(LONG_OPTION_EXPYSCALE).toDouble(); ys = OptionValue(LONG_OPTION_EXPYSCALE).toDouble();