[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Tue Feb 24 13:02:56 PST 2015
sc/source/core/tool/token.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 5803c76f318b2a8b655bf83a8257f60cd112ac71
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
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index b27048a..b5dbee0 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -2517,6 +2517,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