use the correct flag to remove notes

Change-Id: Ib7713cace98c732e9fbcc4e9689ca223544d5e4c
This commit is contained in:
Markus Mohrhard 2012-11-28 15:03:21 +01:00
parent 381fe610a2
commit a9b7b4ab6b

View file

@ -740,7 +740,7 @@ void ScTable::CopyFromClip(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
aCol[i].CopyFromClip(nRow1, nRow2, nDy, nInsFlag, bAsLink, bSkipAttrForEmpty, pTable->aCol[i - nDx]);
//remove old notes
if (nInsFlag & IDF_CONTENTS)
if (nInsFlag & (IDF_NOTE|IDF_ADDNOTES))
maNotes.erase(nCol1, nRow1, nCol2, nRow2);
bool bAddNotes = nInsFlag & (IDF_NOTE | IDF_ADDNOTES);