sc/source/core/data/table2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 63ad8b1c0ddcd895447627ac60701d54ff332c38 Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Fri Feb 23 02:05:05 2018 +0100 better same document test for conditional format copy&paste Change-Id: Ic896202e072a036108c06768f29ba767d3ea7769 Reviewed-on: https://gerrit.libreoffice.org/50218 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com> 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) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits