summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-05 00:12:33 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-05 01:39:23 +0100
commit50506b3840980c671fde55b82954d253bd9e4ac1 (patch)
treed3951d7fbfa8e49e1e2ce8cb5c0dda1119d09bc4 /sc
parente42515549eae51fa625b2d8789f20a5065365ac5 (diff)
readd note handling to CopyUpdated
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table2.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index f058d0792a91..69021ce4fc5f 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -1077,6 +1077,16 @@ void ScTable::CopyUpdated( const ScTable* pPosTab, ScTable* pDestTab ) const
{
for (SCCOL i=0; i<=MAXCOL; i++)
aCol[i].CopyUpdated( pPosTab->aCol[i], pDestTab->aCol[i] );
+
+ // insert notes with captions
+ for(ScNotes::iterator itr = pDestTab->maNotes.begin(); itr != pDestTab->maNotes.end(); ++itr)
+ {
+ SCCOL nCol = itr->first.first;
+ SCROW nRow = itr->first.second;
+ ScPostIt* pPostIt = itr->second;
+
+ pDestTab->maNotes.insert(nCol, nRow, pPostIt->Clone( ScAddress(nCol, nRow, nTab),*pDestTab->pDocument, ScAddress(nCol, nRow, pDestTab->nTab), true ));
+ }
}
void ScTable::InvalidateTableArea()