diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-20 16:32:04 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-30 12:38:20 +0100 |
commit | 24eece9ffb49373009cfab09fe2ac308fef8606d (patch) | |
tree | 23814cd3e64f6e1211b86697e8adabb72adaebd5 | |
parent | fbfc0ddcb822de870ef0150659772d30ad53d778 (diff) |
sw_redlinehide_4a: adapt SwEditShell::FillByEx()
Change-Id: I8a85d1fe580ce8c8a52d0ee00d36e499b5e903dc
-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 7454156c2362..a38e5e70fdbe 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 ) { |