diff --git a/widget/windows/PDFViaEMFPrintHelper.h b/widget/windows/PDFViaEMFPrintHelper.h index 210a3ce4170e..b0a831bc6983 100644 --- a/widget/windows/PDFViaEMFPrintHelper.h +++ b/widget/windows/PDFViaEMFPrintHelper.h @@ -37,7 +37,7 @@ public: /** Releases document buffer. */ void CloseDocument(); - int GetPageCount() { return mPDFiumEngine->GetPageCount(mPDFDoc); } + int GetPageCount() const { return mPDFiumEngine->GetPageCount(mPDFDoc); } /** Convert specified PDF page to EMF and draw the EMF onto the given DC. */ bool DrawPage(HDC aPrinterDC, unsigned int aPageIndex,