the method is actually called twice, fdo#60306

Who the hell had the insane idea to call this method twice. Please give
me tar and feathers. I'm a big fan of this type of punishment now.

Change-Id: Idd5a17fb69162b2cd00d05223b4561041985e929
This commit is contained in:
Markus Mohrhard 2013-02-27 11:44:06 +01:00
parent 823ef20035
commit f741827f91

View file

@ -740,12 +740,15 @@ void ScTable::CopyFromClip(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
aCol[i].CopyFromClip(nRow1, nRow2, nDy, nInsFlag, bAsLink, bSkipAttrForEmpty, pTable->aCol[i - nDx]);
// make sure that there are no old references to the cond formats
sal_uInt16 nWhichArray[2];
nWhichArray[0] = ATTR_CONDITIONAL;
nWhichArray[1] = 0;
for ( SCCOL i = nCol1; i <= nCol2; ++i)
aCol[i].ClearItems(nRow1, nRow2, nWhichArray);
if(nInsFlag != IDF_OBJECTS)
{
// make sure that there are no old references to the cond formats
sal_uInt16 nWhichArray[2];
nWhichArray[0] = ATTR_CONDITIONAL;
nWhichArray[1] = 0;
for ( SCCOL i = nCol1; i <= nCol2; ++i)
aCol[i].ClearItems(nRow1, nRow2, nWhichArray);
}
//remove old notes
if (nInsFlag & (IDF_NOTE|IDF_ADDNOTES))