summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2020-11-05 23:37:30 +0100
committerTomaž Vajngerl <quikee@gmail.com>2020-11-11 22:06:44 +0100
commit6ab5c9e99dccec23a80eb1980dc46986b8c5abca (patch)
treedbab291c905b90f35e8892260e8257152b431325 /include
parenta56ee7d45d82ce9ce47dab3fd95577a28b6f4db3 (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>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/filter/pdfdocument.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/filter/pdfdocument.hxx b/include/vcl/filter/pdfdocument.hxx
index de0a7b9365ff..7e6d210255dd 100644
--- a/include/vcl/filter/pdfdocument.hxx
+++ b/include/vcl/filter/pdfdocument.hxx
@@ -94,6 +94,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;