summaryrefslogtreecommitdiff
path: root/sc/source/core/tool
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-05-06 15:24:50 -0400
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-05-06 22:10:17 +0000
commit043dc226967d28a7ccbc2a39df232ea92a25bc66 (patch)
tree88595435d1ca9687cfe0db2f458c5579a755c984 /sc/source/core/tool
parentf7f1816938e252dcbd342d30c9189b5344c4960b (diff)
fdo#77647: Fix the column insertion use case.
Change-Id: I7c78f54c9386eced16113e69e625d23ed4acedd7 (cherry picked from commit 7aa32a759fb7b440f870739f7bb680f405f338ce) Reviewed-on: https://gerrit.libreoffice.org/9261 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/core/tool')
-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 f4064f9a07fc..8f51a724604c 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -2560,7 +2560,7 @@ bool expandRange( const sc::RefUpdateContext& rCxt, ScRange& rRefRange, const Sc
// Selected range is only partially overlapping in vertical direction. Bail out.
return false;
- if (!rCxt.mrDoc.IsExpandRefs() && rSelectedRange.aStart.Col() == rRefRange.aStart.Col())
+ if (!rCxt.mrDoc.IsExpandRefs() && rSelectedRange.aStart.Col() <= rRefRange.aStart.Col())
// Selected range is at the left end and the edge expansion is turned off. No expansion.
return false;