[Libreoffice-commits] .: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Nov 26 03:39:50 PST 2012
sc/source/core/data/conditio.cxx | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
New commits:
commit a1ba48f312e9a5a1c8383775a0f0ef951832f4d4
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon Nov 26 11:12:30 2012 +0100
we can now update formulas in cond formats correctly, fdo#48970
Change-Id: Ifc5931eeb7325f606822ceaf23ed6af73467c782
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index 740f5fb..7d3815f 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -550,7 +550,11 @@ void ScConditionEntry::UpdateReference( UpdateRefMode eUpdateRefMode,
if ( bDeleteTab )
aComp.UpdateDeleteTab( rRange.aStart.Tab(), false, true, bChanged1, static_cast<SCTAB>(-1 * nDz) );
else
- aComp.UpdateNameReference( eUpdateRefMode, rRange, nDx, nDy, nDz, bChanged1 );
+ {
+ bool bSizeChanged;
+ aComp.UpdateReference( eUpdateRefMode, aSrcPos, rRange, nDx,
+ nDy, nDz, bChanged1, bSizeChanged );
+ }
}
if (bChanged1)
@@ -567,7 +571,11 @@ void ScConditionEntry::UpdateReference( UpdateRefMode eUpdateRefMode,
if ( bDeleteTab )
aComp.UpdateDeleteTab( rRange.aStart.Tab(), false, true, bChanged2, static_cast<SCTAB>(-1*nDz) );
else
- aComp.UpdateNameReference( eUpdateRefMode, rRange, nDx, nDy, nDz, bChanged2 );
+ {
+ bool bSizeChanged;
+ aComp.UpdateReference( eUpdateRefMode, aSrcPos, rRange, nDx,
+ nDy, nDz, bChanged2, bSizeChanged );
+ }
}
if (bChanged2)
More information about the Libreoffice-commits
mailing list