summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-12-08 08:05:34 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-12-08 08:33:29 +0100
commit7e5877a5cd0e48ce3aa364788c6faf81fbce7338 (patch)
treeacaf6ef258ec6e6b42b5d9505985bcc068654ae1
parentfeb749092d1008fba6acb9206d1f8655749519af (diff)
don't update range name if ref not in update range, fdo#85304
Change-Id: I1ccfacd98bd10f6ae1d4eaf7a705fe8863045697
-rw-r--r--sc/source/core/tool/token.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index 3349434a4853..eb83c8c8924d 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -3125,6 +3125,9 @@ bool adjustSingleRefInName(
return false;
}
+ if (!rCxt.maRange.In(rRef.toAbs(rPos)))
+ return false;
+
bool bChanged = false;
if (rCxt.mnColDelta)