[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - sc/source
Eike Rathke
erack at redhat.com
Tue Feb 24 21:55:32 PST 2015
sc/source/core/tool/token.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 8a0712e79a53c057e4a337c5b8570262dc5a33de
Author: Eike Rathke <erack at redhat.com>
Date: Tue Feb 24 20:29:39 2015 +0100
Resolves: tdf#89484 check that sheet reference is within selected sheets
Change-Id: I88f1d0a134ffa3fbb9a5b5abdabbd4774f457e81
(cherry picked from commit 5803c76f318b2a8b655bf83a8257f60cd112ac71)
Reviewed-on: https://gerrit.libreoffice.org/14610
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index f7dbbfa..1b550af 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -2680,6 +2680,10 @@ bool expandRangeByEdge( const sc::RefUpdateContext& rCxt, ScRange& rRefRange, co
// Edge-expansion is turned off.
return false;
+ if (!(rSelectedRange.aStart.Tab() <= rRefRange.aStart.Tab() && rRefRange.aEnd.Tab() <= rSelectedRange.aEnd.Tab()))
+ // Sheet references not within selected range.
+ return false;
+
if (rCxt.mnColDelta > 0)
{
// Insert and shift right.
More information about the Libreoffice-commits
mailing list