diff options
Diffstat (limited to 'xfa/fgas/layout/cfx_break.cpp')
-rw-r--r-- | xfa/fgas/layout/cfx_break.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xfa/fgas/layout/cfx_break.cpp b/xfa/fgas/layout/cfx_break.cpp index b9996b3141..889c043ec2 100644 --- a/xfa/fgas/layout/cfx_break.cpp +++ b/xfa/fgas/layout/cfx_break.cpp @@ -95,11 +95,10 @@ void CFX_Break::SetFontSize(float fFontSize) { void CFX_Break::SetBreakStatus() { ++m_dwIdentity; - int32_t iCount = m_pCurLine->CountChars(); - if (iCount < 1) + if (m_pCurLine->m_LineChars.empty()) return; - CFX_Char* tc = m_pCurLine->GetChar(iCount - 1); + CFX_Char* tc = m_pCurLine->GetChar(m_pCurLine->m_LineChars.size() - 1); if (tc->m_dwStatus == CFX_BreakType::None) tc->m_dwStatus = CFX_BreakType::Piece; } |