summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_sysfontinfo.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-10-28 11:34:42 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-28 11:34:42 -0700
commit95e5834ab6b6e5aa370cacd6266cecbd82c4c155 (patch)
treea948ed773fe1faad6a6b2f4111e8f0c897ef4f40 /fpdfsdk/fpdf_sysfontinfo.cpp
parent159ba95782e0610b217c42a60bbfbd99737e0771 (diff)
downloadpdfium-95e5834ab6b6e5aa370cacd6266cecbd82c4c155.tar.xz
Continue fixing FX_BOOL / int noise
Review-Url: https://codereview.chromium.org/2459073002
Diffstat (limited to 'fpdfsdk/fpdf_sysfontinfo.cpp')
-rw-r--r--fpdfsdk/fpdf_sysfontinfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_sysfontinfo.cpp b/fpdfsdk/fpdf_sysfontinfo.cpp
index 5f80ca0860..bfd45e8d2b 100644
--- a/fpdfsdk/fpdf_sysfontinfo.cpp
+++ b/fpdfsdk/fpdf_sysfontinfo.cpp
@@ -129,8 +129,8 @@ static void* DefaultMapFont(struct _FPDF_SYSFONTINFO* pThis,
const char* family,
int* bExact) {
auto* pDefault = static_cast<FPDF_SYSFONTINFO_DEFAULT*>(pThis);
- return pDefault->m_pFontInfo->MapFont(weight, bItalic, charset, pitch_family,
- family, *bExact);
+ return pDefault->m_pFontInfo->MapFont(weight, !!bItalic, charset,
+ pitch_family, family, *bExact);
}
void* DefaultGetFont(struct _FPDF_SYSFONTINFO* pThis, const char* family) {