summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-08-14 20:22:40 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-14 20:22:40 +0000
commitb924003d35048babcf86d6b8cc0aef9e3ad33173 (patch)
tree49e4e0a246c574772fc7658ea1b3433aafa21c4f /fpdfsdk
parent8c068b396dedc7d29ba7c107f03b2663520c11f1 (diff)
downloadpdfium-b924003d35048babcf86d6b8cc0aef9e3ad33173.tar.xz
Remove unreachable vertical text code in CPDF_Document.
Change-Id: I64b34da202a0f1c30a38cba2f24490aad4063828 Reviewed-on: https://pdfium-review.googlesource.com/40150 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/cfx_systemhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/cfx_systemhandler.cpp b/fpdfsdk/cfx_systemhandler.cpp
index 99aff8c6f8..e33e433531 100644
--- a/fpdfsdk/cfx_systemhandler.cpp
+++ b/fpdfsdk/cfx_systemhandler.cpp
@@ -106,7 +106,7 @@ CPDF_Font* CFX_SystemHandler::AddNativeTrueTypeFontToPDF(
auto pFXFont = pdfium::MakeUnique<CFX_Font>();
pFXFont->LoadSubst(sFontFaceName, true, 0, 0, 0,
FX_GetCodePageFromCharset(nCharset), false);
- return pDoc->AddFont(pFXFont.get(), nCharset, false);
+ return pDoc->AddFont(pFXFont.get(), nCharset);
}
int32_t CFX_SystemHandler::SetTimer(int32_t uElapse,