Kaydet (Commit) 969941f9 authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: fdo#58277 if the SwFrm is not IsValid so are its portions

i.e. they don't necessarily match the SwTxtNode anymore, e.g.
content deleted from node, SwFrm is invalid, old portions
refer to old offsets not new ones yet

Change-Id: I755051cd647aa7bb203a6e1f815193fb6ec39191
üst 19567462
...@@ -2512,9 +2512,9 @@ void SwTxtFrm::RecalcAllLines() ...@@ -2512,9 +2512,9 @@ void SwTxtFrm::RecalcAllLines()
void SwTxtFrm::VisitPortions( SwPortionHandler& rPH ) const void SwTxtFrm::VisitPortions( SwPortionHandler& rPH ) const
{ {
const SwParaPortion* pPara = GetPara(); const SwParaPortion* pPara = IsValid() ? GetPara() : NULL;
if( pPara ) if (pPara)
{ {
if ( IsFollow() ) if ( IsFollow() )
rPH.Skip( GetOfst() ); rPH.Skip( GetOfst() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment