diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-06-17 14:03:05 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-06-17 14:12:10 +0200 |
commit | f255df5e56ba54721eb5e201b06d39aa71794090 (patch) | |
tree | 5fdb137ab2a3a08d344b4de7efa41edb62c93e4a /sw | |
parent | 8a1f55365ca609c1f2a79e9067b4857fae19b202 (diff) |
sw: why doesn't _RestFlyInRange() assign the node to the anchor position?
If it's AT_CHAR anchor it needs to have a valid nContent, if not the
SwFormatAnchor::SetAnchor() will clear nContent.
Change-Id: I876b32110eb9573c1e0807ce02417632a0fcd507
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/docedt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx index f5df0ef00942..81abb44695c2 100644 --- a/sw/source/core/doc/docedt.cxx +++ b/sw/source/core/doc/docedt.cxx @@ -73,7 +73,7 @@ void _RestFlyInRange( _SaveFlyArr & rArr, const SwNodeIndex& rSttIdx, else aPos.nNode = rSttIdx.GetIndex() + rSave.nNdDiff; - aPos.nContent.Assign( 0, 0 ); + aPos.nContent.Assign(dynamic_cast<SwIndexReg*>(&aPos.nNode.GetNode()), 0); SwFormatAnchor aAnchor( pFormat->GetAnchor() ); aAnchor.SetAnchor( &aPos ); pFormat->GetDoc()->GetSpzFrameFormats()->push_back( pFormat ); |