diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2016-10-17 23:19:23 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2016-10-18 20:27:16 -0400 |
commit | e944d9510404d8c67b3867d7cd9f313fd5091004 (patch) | |
tree | b79a7f8aed4f33b11f226867c836f05a585907f5 /formula | |
parent | baeb3b43fb67192e8e8639e2d5dd21ccbf5178a4 (diff) |
tdf#93894: Prohibit grouping when certain token types are present.
For instance, column / row label tokens don't work correctly in
grouped cells with the current implementation.
Change-Id: Idf86312ef15fbfd4382aa90ee6d131c671a80683
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/core/api/token.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx index a9abdd0ef133..7c85b15552e7 100644 --- a/formula/source/core/api/token.cxx +++ b/formula/source/core/api/token.cxx @@ -723,7 +723,8 @@ FormulaTokenArray::FormulaTokenArray() : nError(FormulaError::NONE), nMode(ScRecalcMode::NORMAL), bHyperLink(false), - mbFromRangeName(false) + mbFromRangeName(false), + mbShareable(true) { } @@ -746,6 +747,7 @@ void FormulaTokenArray::Assign( const FormulaTokenArray& r ) nMode = r.nMode; bHyperLink = r.bHyperLink; mbFromRangeName = r.mbFromRangeName; + mbShareable = r.mbShareable; pCode = nullptr; pRPN = nullptr; FormulaToken** pp; @@ -807,6 +809,7 @@ void FormulaTokenArray::Clear() nLen = nIndex = nRPN = 0; bHyperLink = false; mbFromRangeName = false; + mbShareable = true; ClearRecalcMode(); } |