sc/source/core/tool/token.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 5803c76f318b2a8b655bf83a8257f60cd112ac71 Author: Eike Rathke <er...@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. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits