diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-02-23 02:05:05 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-02-24 00:08:40 +0100 |
commit | 63ad8b1c0ddcd895447627ac60701d54ff332c38 (patch) | |
tree | 462d1977a6e94a68c504ae02e9b69bcbe45b4ff9 | |
parent | 856159b3913976c68c8a04b7e939a6cc64477f6a (diff) |
better same document test for conditional format copy&paste
Change-Id: Ic896202e072a036108c06768f29ba767d3ea7769
Reviewed-on: https://gerrit.libreoffice.org/50218
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r-- | sc/source/core/data/table2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index a4deda8bc1db..adb40b67a0c0 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -595,7 +595,7 @@ void ScTable::CopyConditionalFormat( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCRO { ScRange aOldRange( nCol1 - nDx, nRow1 - nDy, pTable->nTab, nCol2 - nDx, nRow2 - nDy, pTable->nTab); ScRange aNewRange( nCol1, nRow1, nTab, nCol2, nRow2, nTab ); - bool bSameDoc = pDocument == pTable->pDocument; + bool bSameDoc = pDocument->GetStyleSheetPool() == pTable->pDocument->GetStyleSheetPool(); for(ScConditionalFormatList::const_iterator itr = pTable->mpCondFormatList->begin(), itrEnd = pTable->mpCondFormatList->end(); itr != itrEnd; ++itr) |