[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - sc/source

Kohei Yoshida kohei.yoshida at collabora.com
Tue Feb 14 15:09:17 UTC 2017


 sc/source/ui/view/viewfunc.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4f48bab920171cd62e99ff99f67ab67ea1c38b97
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Fri Feb 10 22:48:41 2017 -0500

    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 at libreoffice.org>
    Reviewed-by: Kohei Yoshida <libreoffice at kohei.us>
    (cherry picked from commit 6d450aad0a8f82ee0320ffc3e76eefb43c16addb)
    Reviewed-on: https://gerrit.libreoffice.org/34144
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index 0310957..ad5741d 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 )


More information about the Libreoffice-commits mailing list