From 4201b2a5f38a6335d012aa4dc4cd19f6989d05f1 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Sat, 24 May 2014 00:37:54 -0700 Subject: Fix a typo with PAGEMODE_UNKNOWN. R=jam@chromium.org Review URL: https://codereview.chromium.org/297993002 --- fpdfsdk/include/fpdf_ext.h | 2 +- fpdfsdk/src/fpdf_ext.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fpdfsdk/include/fpdf_ext.h b/fpdfsdk/include/fpdf_ext.h index 5efe0e662d..96e3c857fd 100644 --- a/fpdfsdk/include/fpdf_ext.h +++ b/fpdfsdk/include/fpdf_ext.h @@ -71,7 +71,7 @@ DLLEXPORT FPDF_BOOL STDCALL FSDK_SetUnSpObjProcessHandler(UNSUPPORT_INFO* unsp_i //flags for page mode. //Unknown value -#define PAGEMODE_UNKONOWN -1 +#define PAGEMODE_UNKNOWN -1 //Neither document outline nor thumbnail images visible #define PAGEMODE_USENONE 0 diff --git a/fpdfsdk/src/fpdf_ext.cpp b/fpdfsdk/src/fpdf_ext.cpp index 2d9e5ae74c..916cb2069c 100644 --- a/fpdfsdk/src/fpdf_ext.cpp +++ b/fpdfsdk/src/fpdf_ext.cpp @@ -219,10 +219,10 @@ void CheckUnSupportError(CPDF_Document * pDoc, FX_DWORD err_code) DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document) { - if (!document) return PAGEMODE_UNKONOWN; + if (!document) return PAGEMODE_UNKNOWN; CPDF_Dictionary *pRoot = ((CPDF_Document*)document)->GetRoot(); if (!pRoot) - return PAGEMODE_UNKONOWN; + return PAGEMODE_UNKNOWN; CPDF_Object* pName = pRoot->GetElement("PageMode"); if (!pName) return PAGEMODE_USENONE; @@ -241,5 +241,5 @@ DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document) else if (strPageMode.EqualNoCase(FX_BSTR("UseAttachments"))) return PAGEMODE_USEATTACHMENTS; - return PAGEMODE_UNKONOWN; + return PAGEMODE_UNKNOWN; } -- cgit v1.2.3