Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vtextdocumentlayout.cpp
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@

inline static bool realEqual(qreal p_a, qreal p_b)
{
return std::abs((double)(p_a - p_b)) < 1e-8;
return qAbs(p_a - p_b) < 1e-8;
}

VTextDocumentLayout::VTextDocumentLayout(QTextDocument *p_doc,

0 comments on commit 83f63d0

Please sign in to comment.