diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2021-01-06 17:44:00 +0530 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-02-08 22:02:21 +0100 |
commit | d57b2ea6d43e6b421e48c58183eabaa92afd79ef (patch) | |
tree | cbd30e2f296b68170b1c908981cf538c87bf2568 /include | |
parent | c3954cda3a0332ec185159ae9f292f9caeb13ee8 (diff) |
tdf#133858 reduce the double-ref range to data content
in certain matrix formulas like SUM(IF(A1=G:G, H:H)*B1/B2) where whole
columns are used for comparison in the condition of IF ultimately
followed by a reducer like SUM. In such cases we can safely reduce the
double-refs involved in the comparison to the sheet area where there is
data before converting the data to ScMatrix.
This is a more restricted version of Noel's fix in
37ffe509ef011357123642577c04ff296d59ce68
Change-Id: I1c2e8985adedb3f4c4648f541fb0e8e7d0fae033
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109050
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110580
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/formula/FormulaCompiler.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/formula/FormulaCompiler.hxx b/include/formula/FormulaCompiler.hxx index fef6e82e39e1..65765b84d104 100644 --- a/include/formula/FormulaCompiler.hxx +++ b/include/formula/FormulaCompiler.hxx @@ -337,6 +337,8 @@ protected: // Called from CompileTokenArray() after RPN code generation is done. virtual void PostProcessCode() {} + virtual void AnnotateOperands() {} + OUString aCorrectedFormula; // autocorrected Formula OUString aCorrectedSymbol; // autocorrected Symbol |