Kaydet (Commit) 2f3a9a51 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

tdf#88906: Only split new span if it does not enclose exisiting span

Change-Id: I4290659c506ab11825b4c2f36952214b6254252c
üst f694ab51
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment