summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-10-25 12:46:23 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-11-10 19:47:00 +0100
commit25fdc4e8773ab2aed6b304a6e27dcca2e03ef302 (patch)
treea082baf2629270da12040fd2e90b9c02db813b02 /sw
parent92be1510d4fd09848c9928cf5598eac584bf9558 (diff)
sw_redlinehide_3: adapt SwCursorShell::GetOutlinePos()
Filter merged outline nodes. Change-Id: I959dd4bfd2e6b279b8476ffed6b3e6e70651ed49
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/crsr/crstrvl.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx
index 6199da02e663..2bd8d284a6ed 100644
--- a/sw/source/core/crsr/crstrvl.cxx
+++ b/sw/source/core/crsr/crstrvl.cxx
@@ -1156,9 +1156,11 @@ SwOutlineNodes::size_type SwCursorShell::GetOutlinePos( sal_uInt8 nLevel )
{
pNd = rNds.GetOutLineNds()[ nPos ];
- if( pNd->GetTextNode()->GetAttrOutlineLevel()-1 <= nLevel )
+ if (sw::IsParaPropsNode(*GetLayout(), *pNd->GetTextNode())
+ && pNd->GetTextNode()->GetAttrOutlineLevel()-1 <= nLevel)
+ {
return nPos;
-
+ }
}
return SwOutlineNodes::npos; // no more left
}