From 9f7f7f8773410020fbea2be87917591cddd86aab Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 26 Oct 2016 18:58:39 -0700 Subject: Fix some FX_BOOL / int noise in xfa Review-Url: https://codereview.chromium.org/2453983002 --- xfa/fwl/core/ifwl_checkbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fwl/core/ifwl_checkbox.cpp') diff --git a/xfa/fwl/core/ifwl_checkbox.cpp b/xfa/fwl/core/ifwl_checkbox.cpp index cc06f9cea8..2dd8c2d5db 100644 --- a/xfa/fwl/core/ifwl_checkbox.cpp +++ b/xfa/fwl/core/ifwl_checkbox.cpp @@ -68,7 +68,7 @@ FWL_Error IFWL_CheckBox::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) { if (wsCaption.GetLength() > 0) { CFX_SizeF sz = CalcTextSize( wsCaption, m_pProperties->m_pThemeProvider, - m_pProperties->m_dwStyleExes & FWL_STYLEEXT_CKB_MultiLine); + !!(m_pProperties->m_dwStyleExes & FWL_STYLEEXT_CKB_MultiLine)); rect.Set(0, 0, sz.x, sz.y); } rect.Inflate(kCaptionMargin, kCaptionMargin); -- cgit v1.2.3