diff options
Diffstat (limited to 'sw/source/core/text/itrtxt.cxx')
-rw-r--r-- | sw/source/core/text/itrtxt.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/text/itrtxt.cxx b/sw/source/core/text/itrtxt.cxx index b285307a8449..087a3dd76c7a 100644 --- a/sw/source/core/text/itrtxt.cxx +++ b/sw/source/core/text/itrtxt.cxx @@ -75,7 +75,8 @@ SwLineLayout *SwTextIter::GetPrev_() return nullptr; while( pLay->GetNext() != m_pCurr ) pLay = pLay->GetNext(); - return m_pPrev = pLay; + m_pPrev = pLay; + return m_pPrev; } const SwLineLayout *SwTextIter::GetPrev() @@ -113,7 +114,8 @@ const SwLineLayout *SwTextIter::Next() m_nY += GetLineHeight(); if( m_pCurr->GetLen() || ( m_nLineNr>1 && !m_pCurr->IsDummy() ) ) ++m_nLineNr; - return m_pCurr = m_pCurr->GetNext(); + m_pCurr = m_pCurr->GetNext(); + return m_pCurr; } else return nullptr; |