[Libreoffice-commits] core.git: sc/source

Eike Rathke erack at redhat.com
Sat Nov 23 03:37:50 PST 2013


 sc/source/core/data/table2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ef8e0beba442f58abe3bc77f6f55fc6109025dd4
Author: Eike Rathke <erack at redhat.com>
Date:   Sat Nov 23 12:16:51 2013 +0100

    resolved fdo#61946 use correct TabDelta for UpdateReference
    
    The sheet delta was reverted resulting in the references not being
    updated when conditional formats were copy-pasted between sheets. Saved
    to .ods then was an identical calcext:target-range-address as for the
    copied source range.
    
    Change-Id: I038b58f20f71ff1393dccafa3021dac02cd69e4b

diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index b44122e..29e10c9 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -599,7 +599,7 @@ void ScTable::CopyConditionalFormat( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCRO
         aRefCxt.maRange = aNewRange;
         aRefCxt.mnColDelta = nDx;
         aRefCxt.mnRowDelta = nDy;
-        aRefCxt.mnTabDelta = pTable->nTab - nTab;
+        aRefCxt.mnTabDelta = nTab - pTable->nTab;
         pNewFormat->UpdateReference(aRefCxt, true);
 
         sal_uLong nMax = 0;


More information about the Libreoffice-commits mailing list