diff options
author | Eike Rathke <erack@redhat.com> | 2016-11-04 17:44:52 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-11-04 17:45:25 +0100 |
commit | 44523738f094ff3987e85ea0c47b8c636bbe5786 (patch) | |
tree | 6a6310f66f3cc55863714e0c49d7c9d51aa2055a /sc/source/core/data/columnspanset.cxx | |
parent | 54dc3dd96bf720a81eef81864848e58c5db860f8 (diff) |
bail out early in ScColumn::UpdateSelectionFunction() if nothing is marked
... which happens if there are multi-marks in non-adjacent columns.
Change-Id: Ic8cf0fb0071f793fa91c506a56b01f2833fe5cec
Diffstat (limited to 'sc/source/core/data/columnspanset.cxx')
-rw-r--r-- | sc/source/core/data/columnspanset.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/core/data/columnspanset.cxx b/sc/source/core/data/columnspanset.cxx index f5a224fb65c4..255c6fa932f9 100644 --- a/sc/source/core/data/columnspanset.cxx +++ b/sc/source/core/data/columnspanset.cxx @@ -381,6 +381,13 @@ void SingleColumnSpanSet::swap( SingleColumnSpanSet& r ) maSpans.swap(r.maSpans); } +bool SingleColumnSpanSet::empty() const +{ + // Empty if there's only the 0..MAXROW span with false. + ColumnSpansType::const_iterator it = maSpans.begin(); + return (it->first == 0) && (it->second == false) && (++it != maSpans.end()) && (it->first == MAXROWCOUNT); +} + } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |