diff options
Diffstat (limited to 'poppler')
-rw-r--r-- | poppler/Annot.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/Annot.cc b/poppler/Annot.cc index 4e633fc5..a33951a7 100644 --- a/poppler/Annot.cc +++ b/poppler/Annot.cc @@ -5288,7 +5288,7 @@ void AnnotAppearanceBuilder::drawSignatureFieldText(const GooString &text, const if (centerVertically) { const double outTextHeight = textCommands.nLines * da.getFontPtSize(); if (outTextHeight < height) { - yDelta -= (height - outTextHeight) / 2; + yDelta = height - (height - outTextHeight) / 2; } } appendf("BT 1 0 0 1 {0:.2f} {1:.2f} Tm\n", leftMargin + textmargin, yDelta); |