summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docfld.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/docfld.cxx')
-rw-r--r--sw/source/core/doc/docfld.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index 57f976d27e5b..1340aa1444b8 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.cxx
@@ -179,7 +179,7 @@ void SetGetExpField::SetBodyPos( const SwContentFrame& rFrame )
SwNodeIndex aIdx( rFrame.IsTextFrame()
? *static_cast<SwTextFrame const&>(rFrame).GetTextNodeFirst()
: *static_cast<SwNoTextFrame const&>(rFrame).GetNode() );
- SwDoc& rDoc = *aIdx.GetNodes().GetDoc();
+ SwDoc& rDoc = aIdx.GetNodes().GetDoc();
SwPosition aPos( aIdx );
bool const bResult = ::GetBodyTextNode( rDoc, aPos, rFrame );
OSL_ENSURE(bResult, "Where is the field?");