don't insert the same data twice into boost::ptr_set, fdo#55710
Change-Id: Ifcd421cab6e675482d11aa5d2f92e11569077173
This commit is contained in:
@@ -455,18 +455,18 @@ void XMLTableStyleContext::ApplyCondFormat( uno::Sequence<table::CellRangeAddres
|
|||||||
}
|
}
|
||||||
|
|
||||||
pDoc->AddCondFormatData( aRangeList, nTab, nCondId );
|
pDoc->AddCondFormatData( aRangeList, nTab, nCondId );
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(mpCondFormat)
|
if(mpCondFormat && mbDeleteCondFormat)
|
||||||
{
|
{
|
||||||
mbDeleteCondFormat = false;
|
|
||||||
sal_uLong nIndex = pDoc->AddCondFormat(mpCondFormat, nTab );
|
sal_uLong nIndex = pDoc->AddCondFormat(mpCondFormat, nTab );
|
||||||
mpCondFormat->SetKey(nIndex);
|
mpCondFormat->SetKey(nIndex);
|
||||||
mpCondFormat->AddRange(aRangeList);
|
mpCondFormat->AddRange(aRangeList);
|
||||||
|
|
||||||
pDoc->AddCondFormatData( aRangeList, nTab, nIndex );
|
pDoc->AddCondFormatData( aRangeList, nTab, nIndex );
|
||||||
|
mbDeleteCondFormat = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user