sc/source/core/data/formulacell.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6959ed39e4f6f4a71a860acbf734b19b14f9c604 Author: Eike Rathke <er...@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, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits