From 478ed62770e0dc0fe2d859e73496fa8c7f854694 Mon Sep 17 00:00:00 2001 From: tsepez Date: Thu, 27 Oct 2016 14:32:33 -0700 Subject: Fix some FX_BOOL / int noise in fxfa Review-Url: https://codereview.chromium.org/2457673003 --- xfa/fxfa/app/xfa_textlayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fxfa/app/xfa_textlayout.cpp') diff --git a/xfa/fxfa/app/xfa_textlayout.cpp b/xfa/fxfa/app/xfa_textlayout.cpp index 0c7acffa9e..8a4aadb753 100644 --- a/xfa/fxfa/app/xfa_textlayout.cpp +++ b/xfa/fxfa/app/xfa_textlayout.cpp @@ -1276,7 +1276,7 @@ FX_BOOL CXFA_TextLayout::DrawString(CFX_RenderDevice* pFxDevice, } pDevice->RestoreState(); FX_Free(pCharPos); - return iPieceLines; + return iPieceLines > 0; } void CXFA_TextLayout::UpdateAlign(FX_FLOAT fHeight, FX_FLOAT fBottom) { fHeight -= fBottom; -- cgit v1.2.3