summaryrefslogtreecommitdiff
path: root/poppler
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-10-03 13:37:10 +0200
committerAlbert Astals Cid <aacid@kde.org>2019-10-03 13:55:04 +0200
commit442be9e34a6af9295ccd487b3091a1abcd4a77ce (patch)
tree70161f64bb6ba8d0069a85e68256a0abaa93eff6 /poppler
parent095735fa1259a030da8c854ee8ff649fe907642d (diff)
Enable a few more clang-tidy bugprone checks
Diffstat (limited to 'poppler')
-rw-r--r--poppler/Annot.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 56b9b933..9899c880 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -4345,7 +4345,7 @@ bool AnnotAppearanceBuilder::drawText(const GooString *text, const GooString *da
x = borderWidth;
break;
case quaddingCentered:
- x = borderWidth + (comb - charCount) / 2 * w;
+ x = borderWidth + (comb - charCount) / 2.0 * w;
break;
case quaddingRightJustified:
x = borderWidth + (comb - charCount) * w;