summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-04-28 22:57:56 -0400
committerAndras Timar <andras.timar@collabora.com>2014-04-29 12:44:46 +0000
commitfbd7c65a16a2f46ee388795e1bb397a719627b9a (patch)
tree78b77b72d5a22c687c639f8be1fad3f9f2e90e26
parentf793a5a2847e5fe03ccacf7127c153a76863d468 (diff)
fdo#77647: Expand reference only when the top of the selected range is...
below the top of the reference range. Change-Id: Ibb3dadb50dd076ae05033b046c9506c60605f713 (cherry picked from commit c3e40f47abe3da7e24059281a9047b1292241398) Reviewed-on: https://gerrit.libreoffice.org/9190 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--sc/source/core/tool/token.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index 0e0f8fd2bff7..9089a62afd1b 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -2576,7 +2576,7 @@ bool expandRange( const sc::RefUpdateContext& rCxt, ScRange& rRefRange, const Sc
// Selected range is only partially overlapping in horizontal direction. Bail out.
return false;
- if (!rCxt.mrDoc.IsExpandRefs() && rSelectedRange.aStart.Row() == rRefRange.aStart.Row())
+ if (!rCxt.mrDoc.IsExpandRefs() && rSelectedRange.aStart.Row() <= rRefRange.aStart.Row())
// Selected range is at the top end and the edge expansion is turned off. No expansion.
return false;