summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-11-04 14:54:30 +0100
committerEike Rathke <erack@redhat.com>2016-11-04 14:55:01 +0100
commit334a03d801f750c6c97e02ced4cc66e680888196 (patch)
tree27878d1cf2de29e9e7b2c73a741473969dadcbff
parentd082936c7a2c3fd6a8784fa5a626f545ec904b42 (diff)
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
-rw-r--r--sc/source/core/data/columnspanset.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/columnspanset.cxx b/sc/source/core/data/columnspanset.cxx
index d5d44030461b..f5a224fb65c4 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);
}