vcl/source/filter/ipdf/pdfread.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 49f2eb54176af7f17aadb0108f290b2698da467f
Author:     Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk>
AuthorDate: Thu Sep 3 14:30:40 2020 +0200
Commit:     Tomaž Vajngerl <qui...@gmail.com>
CommitDate: Sun Sep 6 14:04:15 2020 +0200

    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 <qui...@gmail.com>
    Reviewed-by: Tomaž Vajngerl <qui...@gmail.com>

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(
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to