summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/fpdf_editpage.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/fpdfsdk/fpdf_editpage.cpp b/fpdfsdk/fpdf_editpage.cpp
index 36853c70c6..d21b215d09 100644
--- a/fpdfsdk/fpdf_editpage.cpp
+++ b/fpdfsdk/fpdf_editpage.cpp
@@ -277,7 +277,7 @@ FPDFPageObj_CountMarks(FPDF_PAGEOBJECT page_object) {
const auto& mark =
CPDFPageObjectFromFPDFPageObject(page_object)->m_ContentMark;
- return mark.HasRef() ? mark.CountItems() : 0;
+ return mark.CountItems();
}
FPDF_EXPORT FPDF_PAGEOBJECTMARK FPDF_CALLCONV
@@ -286,9 +286,6 @@ FPDFPageObj_GetMark(FPDF_PAGEOBJECT page_object, unsigned long index) {
return nullptr;
auto* mark = &CPDFPageObjectFromFPDFPageObject(page_object)->m_ContentMark;
- if (!mark->HasRef())
- return nullptr;
-
if (index >= mark->CountItems())
return nullptr;