[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Thu Mar 31 23:01:25 UTC 2016
sc/source/core/data/formulacell.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6959ed39e4f6f4a71a860acbf734b19b14f9c604
Author: Eike Rathke <erack at redhat.com>
Date: Fri Apr 1 00:59:09 2016 +0200
re-enable copying global names to other docs
Change-Id: Ide022525decbbec1fb4a498074752615786daab4
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index c3db7a9..e234bf0 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -728,7 +728,7 @@ void adjustRangeName(formula::FormulaToken* pToken, ScDocument& rNewDoc, const S
pOldRangeData, rNewDoc, pOldDoc, rNewPos, rOldPos,
bGlobalNamesToLocal, nTmpSheet, nNewSheet, bSameDoc);
}
- if (bGlobalNamesToLocal && !aReferencingNames.isEmpty(-1))
+ if ((bGlobalNamesToLocal || !bSameDoc) && !aReferencingNames.isEmpty(-1))
{
const SCTAB nTmpSheet = -1;
ScRangeData* pTmpData = copyRangeNames( aSheetIndexMap, aRangeDataVec, aReferencingNames, -1,
More information about the Libreoffice-commits
mailing list