fix copy&paste of conditional format between sheets

Change-Id: I8856bff376f0f6e366062eddbc68a9eee098be5b
Reviewed-on: https://gerrit.libreoffice.org/11327
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index daba57b..98cb68f 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -907,10 +907,6 @@ bool ScDocument::CopyTab( SCTAB nOldPos, SCTAB nNewPos, const ScMarkData* pOnlyM
        maTabs[nOldPos]->StartAllListeners();
        maTabs[nNewPos]->StartAllListeners();

        ScConditionalFormatList* pNewList = new ScConditionalFormatList(*maTabs[nOldPos]->GetCondFormList());
        pNewList->UpdateReference(aRefCxt);
        maTabs[nNewPos]->SetCondFormList( pNewList );

        sc::SetFormulaDirtyContext aFormulaDirtyCxt;
        SetAllFormulasDirty(aFormulaDirtyCxt);