diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-20 16:32:04 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-12-01 08:44:44 +0100 |
commit | 695a7f10fa9dd55359fbc99b7fdced1c1a7fe025 (patch) | |
tree | 8f5878eb5ee3164153995656675c80bfedf9c161 /sw/source/core/edit/edfcol.cxx | |
parent | c2932c1005968b9d0f1500c6a018704e2ccd4658 (diff) |
sw_redlinehide_4a: adapt SwEditShell::FillByEx()
Change-Id: I8a85d1fe580ce8c8a52d0ee00d36e499b5e903dc
Diffstat (limited to 'sw/source/core/edit/edfcol.cxx')
-rw-r--r-- | sw/source/core/edit/edfcol.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx index 29d407dc8182..b04f1c30dad2 100644 --- a/sw/source/core/edit/edfcol.cxx +++ b/sw/source/core/edit/edfcol.cxx @@ -77,6 +77,7 @@ #include <unoprnms.hxx> #include <rootfrm.hxx> #include <pagefrm.hxx> +#include <txtfrm.hxx> #include <rdfhelper.hxx> #include <sfx2/watermarkitem.hxx> @@ -2203,6 +2204,10 @@ void SwEditShell::FillByEx(SwTextFormatColl* pColl) { SwPaM * pCursor = GetCursor(); SwContentNode * pCnt = pCursor->GetContentNode(); + if (pCnt->IsTextNode()) // uhm... what nonsense would happen if not? + { // only need properties-node because BREAK/PAGEDESC filtered anyway! + pCnt = sw::GetParaPropsNode(*GetLayout(), pCursor->GetPoint()->nNode); + } const SfxItemSet* pSet = pCnt->GetpSwAttrSet(); if( pSet ) { |