Index: xfa/fwl/basewidget/fwl_editimp.cpp |
diff --git a/xfa/fwl/basewidget/fwl_editimp.cpp b/xfa/fwl/basewidget/fwl_editimp.cpp |
index 8b4dd39321cd95cbe771494d31d6f5c5e0a2b1e3..a80b89f9a74e2190685df726d7b6acc7b14b1049 100644 |
--- a/xfa/fwl/basewidget/fwl_editimp.cpp |
+++ b/xfa/fwl/basewidget/fwl_editimp.cpp |
@@ -1831,7 +1831,7 @@ void CFWL_EditImpDelegate::DoButtonDown(CFWL_MsgMouse* pMsg) { |
} |
void CFWL_EditImpDelegate::OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet) { |
uint32_t dwStyleEx = m_pOwner->GetStylesEx(); |
- FX_BOOL bRepaint = dwStyleEx & FWL_STYLEEXT_EDT_InnerCaret; |
+ bool bRepaint = !!(dwStyleEx & FWL_STYLEEXT_EDT_InnerCaret); |
if (bSet) { |
m_pOwner->m_pProperties->m_dwStates |= FWL_WGTSTATE_Focused; |
if (!m_pOwner->m_pEdtEngine) { |