Kaydet (Commit) ab125155 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

don't try to use Inf for axes calculation fdo#43703

üst 70afe780
......@@ -909,6 +909,12 @@ void ScaleAutomatism::calculateExplicitIncrementAndScaleForLinear(
fDistanceNormalized = 1.0;
fDistanceMagnitude = 1.0e-307;
}
else if ( !rtl::math::isFinite(fDistance) )
{
// fdo#43703: Handle values bigger than limits correctly
fDistanceNormalized = 1.0;
fDistanceMagnitude = std::numeric_limits<double>::max();
}
else
{
// distance magnitude (a power of 10)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment