diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2017-02-10 22:48:41 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2017-02-10 23:46:08 -0500 |
commit | a25e047a562516e72ccd93ac2600aef308de32e0 (patch) | |
tree | a4ac8696ebadcc685975aac6c429475cd5809ca0 /sc | |
parent | 3b6eaa2db7d7014b94d13a5f8e1ab34b9e263fa0 (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>
(cherry picked from commit 6d450aad0a8f82ee0320ffc3e76eefb43c16addb)
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/viewfunc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx index c37032042ac1..9ae6dcb3d4e8 100644 --- a/sc/source/ui/view/viewfunc.cxx +++ b/sc/source/ui/view/viewfunc.cxx @@ -1869,8 +1869,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 ) |