Fix build on Debian.

This commit is contained in:
Roman Telezhynskyi 2022-02-17 19:29:44 +02:00
parent 214f4f7562
commit c0e45c85fe

View File

@ -3,7 +3,7 @@
#include "../vptilefactory.h"
#include "../layout/vplayout.h"
#include "../layout/vpsheet.h"
#include "qnamespace.h"
#include "../vmisc/vmath.h"
#include <QFileInfo>
#include <QImageReader>
@ -61,7 +61,7 @@ auto OptimizeFontSizeToFitTextInRect(QPainter *painter, const QRectF &drawRect,
factor = yFactor;
}
error = abs(factor-1.0);
error = qFabs(factor-1);
if (factor > 1 )
{
if (error < minError)