diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2010-01-05 14:12:48 +0100 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2010-01-05 14:12:48 +0100 |
commit | a15b7f802db8a2286ce59f325d50b2db29743171 (patch) | |
tree | 2ad468143fd39b720874e790933ac8ca4271676a | |
parent | 046c7afda36e68635b852c979157ef2ddefd9d9e (diff) | |
parent | 27f3b9b1fee739ae147ac1bd15a69d70bc529298 (diff) |
CWS-TOOLING: integrate CWS calc32stopper7_DEV300
Notes
split repo tag: calc_ooo/DEV300_m69
-rw-r--r-- | sc/source/core/data/cell2.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx index d7d3708c3295..4caaa1cb3267 100644 --- a/sc/source/core/data/cell2.cxx +++ b/sc/source/core/data/cell2.cxx @@ -679,6 +679,14 @@ ScFormulaCell::HasRefListExpressibleAsOneReference(ScRange& rRange) const Union of these references must form one range and their intersection must be empty set. */ + + // Detect the simple case of exactly one reference in advance without all + // overhead. + // #i107741# Doing so actually makes outlines using SUBTOTAL(x;reference) + // work again, where the function does not have only references. + if (HasOneReference( rRange)) + return true; + pCode->Reset(); // Get first reference, if any ScToken* const pFirstReference( |