diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-29 17:01:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-29 22:21:05 +0100 |
commit | 2f3a9a51bfd042e20fe995b3f7437033d85a8907 (patch) | |
tree | b4b6679109005be546bd78153b4eefa5cd9b998e /sw | |
parent | f694ab5198587dcacd8c40c9095e7bc9435cbff2 (diff) |
tdf#88906: Only split new span if it does not enclose exisiting span
Change-Id: I4290659c506ab11825b4c2f36952214b6254252c
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/html/htmlatr.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sw/source/filter/html/htmlatr.cxx b/sw/source/filter/html/htmlatr.cxx index 5705622ebbce..d94fcc7cac0b 100644 --- a/sw/source/filter/html/htmlatr.cxx +++ b/sw/source/filter/html/htmlatr.cxx @@ -1528,10 +1528,13 @@ void HTMLEndPosLst::InsertItem( const SfxPoolItem& rItem, sal_Int32 nStart, } else if( nTestEnd < nEnd ) { - // das Test-Attribut endet, bevor das neue endet. Das - // neue Attribut muss deshalb aufgesplittet werden - _InsertItem( new HTMLSttEndPos( rItem, nStart, nTestEnd ), i ); - nStart = nTestEnd; + if( pTest->GetStart() < nStart ) + { + // das Test-Attribut endet, bevor das neue endet. Das + // neue Attribut muss deshalb aufgesplittet werden + _InsertItem( new HTMLSttEndPos( rItem, nStart, nTestEnd ), i ); + nStart = nTestEnd; + } } else { |