diff options
-rw-r--r-- | sw/source/core/txtnode/thints.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/txtnode/thints.cxx b/sw/source/core/txtnode/thints.cxx index 1d3791b119a9..e97df81267df 100644 --- a/sw/source/core/txtnode/thints.cxx +++ b/sw/source/core/txtnode/thints.cxx @@ -723,8 +723,10 @@ void SwpHints::BuildPortions( SwTextNode& rNode, SwTextAttr& rNewHint, const sal_Int32 nOtherStart = pOther->GetStart(); const sal_Int32 nOtherEnd = *pOther->End(); - aBounds.insert( nOtherStart ); - aBounds.insert( nOtherEnd ); + if (nThisStart <= nOtherStart && nOtherStart <= nThisEnd) + aBounds.insert( nOtherStart ); + if (nThisStart <= nOtherEnd && nOtherEnd <= nThisEnd) + aBounds.insert( nOtherEnd ); } } |