summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRelease Engineers <releng@openoffice.org>2009-07-08 13:14:27 +0000
committerRelease Engineers <releng@openoffice.org>2009-07-08 13:14:27 +0000
commit727a8537d3fd571bbeb495f90fd7ced2a95caa49 (patch)
tree1f0d9d6797373e05c81cb092f7bd9ac3b9d5e775
parent4ab13eb9b90ce4a1dd6b376e605aa742cd64a591 (diff)
#i10000# fix for error from dr70
-rw-r--r--sc/source/core/data/column3.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index d890563a63f7..5726862366cf 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -782,7 +782,8 @@ void ScColumn::CopyFromClip(SCROW nRow1, SCROW nRow2, long nDy,
DBG_ASSERT( !pAddNoteCell->HasNote(), "ScColumn::CopyFromClip - unexpected note at destination cell" );
bool bCloneCaption = (nInsFlag & IDF_NOCAPTIONS) == 0;
// #i52342# if caption is cloned, the note must be constructed with the destination document
- ScPostIt* pNewNote = ScNoteUtil::CloneNote( *pDocument, aDestPos, *pSourceNote, bCloneCaption );
+ ScAddress aSourcePos( rColumn.nCol, rColumn.pItems[i].nRow, rColumn.nTab );
+ ScPostIt* pNewNote = pSourceNote->Clone( aSourcePos, *pDocument, aDestPos, bCloneCaption );
pAddNoteCell->TakeNote( pNewNote );
}
}