summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2017-02-10 22:48:41 -0500
committerKohei Yoshida <libreoffice@kohei.us>2017-02-11 04:42:30 +0000
commit6d450aad0a8f82ee0320ffc3e76eefb43c16addb (patch)
tree9c5316deb134b23a3ea7c082241cea2d594a6276
parentd3293c7173210e0246d0dc29377f687f41588da2 (diff)
tdf#95306: Be sure to specify the entire range.
Especially in presence of multiple disjointed selections. Change-Id: I8e7779824109c30e69fd43a2448ae900beaf28d3 Reviewed-on: https://gerrit.libreoffice.org/34140 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
-rw-r--r--sc/source/ui/view/viewfunc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index ee69a1488ce8..fbc2203e9059 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -1871,8 +1871,8 @@ void ScViewFunc::SetWidthOrHeight(
return;
}
- SCCOLROW nStart = rRanges[0].mnStart;
- SCCOLROW nEnd = rRanges[0].mnEnd;
+ SCCOLROW nStart = rRanges.front().mnStart;
+ SCCOLROW nEnd = rRanges.back().mnEnd;
bool bFormula = false;
if ( eMode == SC_SIZE_OPTIMAL )