summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-07-27 23:03:22 +0200
committerEike Rathke <erack@redhat.com>2012-07-30 22:09:11 +0200
commit71e6a74ca6f77db134cbde5ebea1338cd64439e0 (patch)
tree2df0369d86622865220b1bfa4492cd4cef098722
parent77792fef0f7d199dab5c3bc065410968c7e6680b (diff)
copy conditional formats with sheets, fdo#52457
Change-Id: Ic7a337e8a6b36fecbd3aad0e3366fd6f0ccc99c6 (cherry picked from commit cbd98c547af4fac641204fb56149e9d7af9ec075) Signed-off-by: Eike Rathke <erack@redhat.com>
-rw-r--r--sc/source/core/data/documen2.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index f072f87ec922..e54317316019 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -877,6 +877,12 @@ bool ScDocument::CopyTab( SCTAB nOldPos, SCTAB nNewPos, const ScMarkData* pOnlyM
SetNoListening( false );
maTabs[nOldPos]->StartAllListeners();
maTabs[nNewPos]->StartAllListeners();
+
+ ScConditionalFormatList* pNewList = new ScConditionalFormatList(*maTabs[nOldPos]->GetCondFormList());
+ pNewList->UpdateReference(URM_COPY, ScRange( 0, 0, nNewPos , MAXCOL, MAXROW,
+ nNewPos), 0, 0, nDz);
+ maTabs[nNewPos]->SetCondFormList( pNewList );
+
SetDirty();
SetAutoCalc( bOldAutoCalc );