diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2020-09-03 14:30:40 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-09-06 14:04:15 +0200 |
commit | 49f2eb54176af7f17aadb0108f290b2698da467f (patch) | |
tree | 126f3375bcdc929cdbc22252221e67899efe2e4b /vcl | |
parent | 9ec80bc7dc33cf9b3119d8bd72cbd0852fbc1ad6 (diff) |
pdf: don't require that a "text" annotation has a "pop-up" child
Change-Id: I9b5940ea7c402725fa899a004241920663605fec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102093
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/ipdf/pdfread.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx index 190644d91d31..1dde06491ea1 100644 --- a/vcl/source/filter/ipdf/pdfread.cxx +++ b/vcl/source/filter/ipdf/pdfread.cxx @@ -239,12 +239,10 @@ std::vector<PDFGraphicAnnotation> findAnnotations(std::unique_ptr<vcl::pdf::PDFi { auto eSubtype = pAnnotation->getSubType(); - if (eSubtype == vcl::pdf::PDFAnnotationSubType::Text - && pAnnotation->hasKey(vcl::pdf::constDictionaryKeyPopup)) + if (eSubtype == vcl::pdf::PDFAnnotationSubType::Text) { OUString sAuthor = pAnnotation->getString(vcl::pdf::constDictionaryKeyTitle); OUString sText = pAnnotation->getString(vcl::pdf::constDictionaryKeyContents); - auto pPopupAnnotation = pAnnotation->getLinked(vcl::pdf::constDictionaryKeyPopup); basegfx::B2DRectangle rRectangle = pAnnotation->getRectangle(); basegfx::B2DRectangle rRectangleHMM( |