Correct user defined export scale factor.

(cherry picked from commit dda789e444)
This commit is contained in:
Roman Telezhynskyi 2020-05-10 11:25:25 +03:00
parent e2ef71faf6
commit 3e4b82b3cc

View File

@ -415,7 +415,7 @@ qreal VCommandLine::ExportXScale() const
qreal xs = 1;
if (IsOptionSet(LONG_OPTION_EXPXSCALE))
{
xs = OptionValue(LONG_OPTION_EXPXSCALE).toDouble();
xs = qBound(0.01, OptionValue(LONG_OPTION_EXPXSCALE).toDouble(), 3.0);
}
return xs;
}
@ -426,7 +426,7 @@ qreal VCommandLine::ExportYScale() const
qreal ys = 1;
if (IsOptionSet(LONG_OPTION_EXPYSCALE))
{
ys = OptionValue(LONG_OPTION_EXPYSCALE).toDouble();
ys = qBound(0.01, OptionValue(LONG_OPTION_EXPYSCALE).toDouble(), 3.0);
}
return ys;
}