From e944d9510404d8c67b3867d7cd9f313fd5091004 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Mon, 17 Oct 2016 23:19:23 -0400 Subject: 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 --- formula/source/core/api/token.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'formula') 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(); } -- cgit