diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2020-11-05 23:37:30 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-11-12 12:36:24 +0100 |
commit | 11b2d63b783a90da16fb9f7291a7ac8134a4d24b (patch) | |
tree | 1eb888a90b01c374e99291d9c7735cc91f1cacb0 /include | |
parent | 87e33231f8afc3e2d91f5f97a09743ee76fd46e9 (diff) |
pdf: use a common call to parse a object
Previously, only Lookup method called parsing correctly, taking
into account that the object is in its own stream and has its
own elements vector. Many other methods called parse with the
wrong - document element vector. This changes the code so that
a common method is called in all instances with the correct
elements vector as the input parameter.
Change-Id: I7092f7ce683f07065da15cfa548b06c019efeed4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105491
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 6ab5c9e99dccec23a80eb1980dc46986b8c5abca)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105637
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/filter/pdfdocument.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/filter/pdfdocument.hxx b/include/vcl/filter/pdfdocument.hxx index 50679a9fd996..5ab6c2044ac8 100644 --- a/include/vcl/filter/pdfdocument.hxx +++ b/include/vcl/filter/pdfdocument.hxx @@ -114,6 +114,8 @@ class VCL_DLLPUBLIC PDFObjectElement final : public PDFElement /// nested dictionaries. std::vector<PDFReferenceElement*> m_aDictionaryReferences; + void parseIfNecessary(); + public: PDFObjectElement(PDFDocument& rDoc, double fObjectValue, double fGenerationValue); bool Read(SvStream& rStream) override; |