From 34638df69902a2251e8c23833b62c005a754fd5d Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 9 Oct 2012 07:04:58 +0200 Subject: don't insert the same data twice into boost::ptr_set, fdo#55710 Change-Id: Ifcd421cab6e675482d11aa5d2f92e11569077173 --- sc/source/filter/xml/xmlstyli.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sc') diff --git a/sc/source/filter/xml/xmlstyli.cxx b/sc/source/filter/xml/xmlstyli.cxx index fe0f2650c87b..bb054377c104 100644 --- a/sc/source/filter/xml/xmlstyli.cxx +++ b/sc/source/filter/xml/xmlstyli.cxx @@ -455,18 +455,18 @@ void XMLTableStyleContext::ApplyCondFormat( uno::SequenceAddCondFormatData( aRangeList, nTab, nCondId ); - break; + return; } } - if(mpCondFormat) + if(mpCondFormat && mbDeleteCondFormat) { - mbDeleteCondFormat = false; sal_uLong nIndex = pDoc->AddCondFormat(mpCondFormat, nTab ); mpCondFormat->SetKey(nIndex); mpCondFormat->AddRange(aRangeList); pDoc->AddCondFormatData( aRangeList, nTab, nIndex ); + mbDeleteCondFormat = false; } -- cgit