Fix build on Debian 9.
This commit is contained in:
parent
95e115faca
commit
2c0ccbb1cf
|
@ -61,7 +61,7 @@ auto OptimizeFontSizeToFitTextInRect(QPainter *painter, const QRectF &drawRect,
|
||||||
factor = yFactor;
|
factor = yFactor;
|
||||||
}
|
}
|
||||||
|
|
||||||
error = abs(factor-1);
|
error = abs(factor-1.0);
|
||||||
if (factor > 1 )
|
if (factor > 1 )
|
||||||
{
|
{
|
||||||
if (error < minError)
|
if (error < minError)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user