Fix build on Debian 9.

This commit is contained in:
Roman Telezhynskyi 2022-02-17 13:20:42 +02:00
parent 95e115faca
commit 2c0ccbb1cf

View File

@ -61,7 +61,7 @@ auto OptimizeFontSizeToFitTextInRect(QPainter *painter, const QRectF &drawRect,
factor = yFactor;
}
error = abs(factor-1);
error = abs(factor-1.0);
if (factor > 1 )
{
if (error < minError)