summaryrefslogtreecommitdiff
path: root/sc/inc/table.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-11-26 11:23:24 +0100
committerEike Rathke <erack@redhat.com>2016-11-26 11:39:44 +0100
commit0a2a7436b4041bb34b01a183b9264af8488d1af3 (patch)
treeab83f3f552d7f56fe3e32c74a67c92731af82cb2 /sc/inc/table.hxx
parent7b250d56981f78e77454a2a3fd670731b2358e75 (diff)
Resolves: tdf#103493 copying note captions needs a completed destination sheet
If a copied sheet's destination position is before its source position, the source's ScColumn::nTab members still pointed to the original source position when the captions were created, which led to the wrong drawing layer page being used and at the end the drawing shapes not being correctly assigned. Change-Id: I9c3cc97d8b4486756023b9ab02da28079a1d0627
Diffstat (limited to 'sc/inc/table.hxx')
-rw-r--r--sc/inc/table.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index e984c2ee7ccc..da69ea9a0571 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -454,7 +454,9 @@ public:
sc::CopyToDocContext& rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
InsertDeleteFlags nFlags, bool bMarked, ScTable* pDestTab,
const ScMarkData* pMarkData = nullptr, bool bAsLink = false, bool bColRowFlags = true,
- bool bGlobalNamesToLocal = false );
+ bool bGlobalNamesToLocal = false, bool bCopyCaptions = true );
+
+ void CopyCaptionsToTable( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, ScTable* pDestTab, bool bCloneCaption );
void UndoToTable(
sc::CopyToDocContext& rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,