summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorfred ross-perry <fredross-perry@Fred-Ross-Perrys-Computer.local>2016-11-02 10:59:32 -0700
committerTor Andersson <tor.andersson@artifex.com>2016-11-02 19:41:34 +0100
commitc973d21e85928e035e63bd54bfc905f00975a43a (patch)
treee0fe6e97f9d60674c9a49c0d2a47d2a96890fde8 /source/pdf
parent9e2a8b67d21666de1979b30fbda5750d5402d000 (diff)
downloadmupdf-c973d21e85928e035e63bd54bfc905f00975a43a.tar.xz
Use pdf_annot_border to get the border width of an annotation.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-appearance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-appearance.c b/source/pdf/pdf-appearance.c
index 5982ca88..f94103a9 100644
--- a/source/pdf/pdf-appearance.c
+++ b/source/pdf/pdf-appearance.c
@@ -1816,7 +1816,7 @@ void pdf_update_ink_appearance(fz_context *ctx, pdf_document *doc, pdf_annot *an
color[2] = 0.0f;
}
- width = pdf_to_real(ctx, pdf_dict_get(ctx, pdf_dict_get(ctx, annot->obj, PDF_NAME_BS), PDF_NAME_W));
+ width = pdf_annot_border(ctx, annot);
if (width == 0.0f)
width = 1.0f;