Kaydet (Commit) cbd98c54 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

copy conditional formats with sheets, fdo#52457

Change-Id: Ic7a337e8a6b36fecbd3aad0e3366fd6f0ccc99c6
üst 06b5dfff
......@@ -871,6 +871,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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment