[Libreoffice-commits] core.git: sc/source

Eike Rathke erack at redhat.com
Fri Nov 4 13:55:26 UTC 2016


 sc/source/core/data/columnspanset.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 334a03d801f750c6c97e02ced4cc66e680888196
Author: Eike Rathke <erack at redhat.com>
Date:   Fri Nov 4 14:54:30 2016 +0100

    use ScMarkData::GetMarkedRangesForTab(nTab) in SingleColumnSpanSet::scan()
    
    That always worked only by chance only on the first selected sheet, luckily
    with ScMarkData it seems to be used only in ScColumn::GetOptimalColWidth()
    which usually operates on the visible sheet.
    
    So now setting optimal column width actually works on all selected sheets for
    the selected columns.
    
    Change-Id: I5944b943824a67d77b549b6cdfc0b2550b8d77b8

diff --git a/sc/source/core/data/columnspanset.cxx b/sc/source/core/data/columnspanset.cxx
index d5d4403..f5a224f 100644
--- a/sc/source/core/data/columnspanset.cxx
+++ b/sc/source/core/data/columnspanset.cxx
@@ -329,7 +329,7 @@ void SingleColumnSpanSet::scan(const ScMarkData& rMark, SCTAB nTab, SCCOL nCol)
         // This table is not selected. Nothing to scan.
         return;
 
-    ScRangeList aRanges = rMark.GetMarkedRanges();
+    ScRangeList aRanges = rMark.GetMarkedRangesForTab(nTab);
     scan(aRanges, nTab, nCol);
 }
 


More information about the Libreoffice-commits mailing list