diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-06-01 18:56:48 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-06-08 21:51:34 +0200 |
commit | b69127505ebade73982d8b0131a80a027ae4bd55 (patch) | |
tree | af131edc53e38c2cd13b7bc48413d6b7fc22843f /sw/source/core/doc/doclay.cxx | |
parent | 4465e68909d6cc3f6bdb76dda8a01fe79c42fc19 (diff) |
sw_redlinehide: trivial GetNode() in docfld.cxx,docfly.cxx,doclay.cxx
Change-Id: I2f95b413a65fac0a68678eb06f90238707c57e68
Diffstat (limited to 'sw/source/core/doc/doclay.cxx')
-rw-r--r-- | sw/source/core/doc/doclay.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx index d50c9f232f94..86ad696d877a 100644 --- a/sw/source/core/doc/doclay.cxx +++ b/sw/source/core/doc/doclay.cxx @@ -71,6 +71,8 @@ #include <rootfrm.hxx> #include <pagefrm.hxx> #include <cntfrm.hxx> +#include <txtfrm.hxx> +#include <notxtfrm.hxx> #include <flyfrm.hxx> #include <fesh.hxx> #include <docsh.hxx> @@ -580,7 +582,9 @@ SwPosFlyFrames SwDoc::GetAllFlyFormats( const SwPaM* pCmpRange, bool bDrawAlso, } if ( pContentFrame ) { - SwNodeIndex aIdx( *pContentFrame->GetNode() ); + SwNodeIndex aIdx( pContentFrame->IsTextFrame() + ? *static_cast<SwTextFrame const*>(pContentFrame)->GetTextNodeFirst() + : *static_cast<SwNoTextFrame const*>(pContentFrame)->GetNode() ); aRetval.insert(std::make_shared<SwPosFlyFrame>(aIdx, pFly, aRetval.size())); } } |