From c973d21e85928e035e63bd54bfc905f00975a43a Mon Sep 17 00:00:00 2001 From: fred ross-perry Date: Wed, 2 Nov 2016 10:59:32 -0700 Subject: Use pdf_annot_border to get the border width of an annotation. --- source/pdf/pdf-appearance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3