summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_editpage.cpp
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-07-11 18:58:42 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-11 18:58:42 +0000
commit8ac090c4a57bc27044adc7abe8143ce45388b021 (patch)
tree1e7edcced6de44e83e11b63578bc1f8b00399f34 /fpdfsdk/fpdf_editpage.cpp
parentb165ffb64e59998ec6d5f76c82bd2fe53734b3cd (diff)
downloadpdfium-8ac090c4a57bc27044adc7abe8143ce45388b021.tar.xz
Split CPDF_ContentMark::AddMark() into three versions.
One version is for a mark without a dictionary. The second is for a mark with a direct dictionary. The third is for a mark with indirect properties. Bug: pdfium:1118 Change-Id: Ice0ff11d5ba4eaf2ccdf57be49b9140ba5c9b159 Reviewed-on: https://pdfium-review.googlesource.com/37550 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_editpage.cpp')
-rw-r--r--fpdfsdk/fpdf_editpage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdf_editpage.cpp b/fpdfsdk/fpdf_editpage.cpp
index 4151de5dfd..8d8c315b07 100644
--- a/fpdfsdk/fpdf_editpage.cpp
+++ b/fpdfsdk/fpdf_editpage.cpp
@@ -326,7 +326,7 @@ FPDFPageObj_AddMark(FPDF_PAGEOBJECT page_object, FPDF_BYTESTRING name) {
return nullptr;
auto* mark = &CPDFPageObjectFromFPDFPageObject(page_object)->m_ContentMark;
- mark->AddMark(name, nullptr, true);
+ mark->AddMark(name);
unsigned long index = mark->CountItems() - 1;
return FPDFPageObjectMarkFromCPDFContentMarkItem(mark->GetItem(index));