summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-04-28 22:57:56 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-04-28 23:01:01 -0400
commitc3e40f47abe3da7e24059281a9047b1292241398 (patch)
treeeeab3018f6010b12ffda5414b0282d307e7b33e7
parentce0228af2da5cea2accb91c3ca770cbe01005bab (diff)
fdo#77647: Expand reference only when the top of the selected range is...
below the top of the reference range. Change-Id: Ibb3dadb50dd076ae05033b046c9506c60605f713
-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 53444544f14c..016ff7942d77 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -2562,7 +2562,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;