diff options
author | Eike Rathke <erack@redhat.com> | 2015-12-18 23:22:24 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-12-18 23:28:14 +0100 |
commit | dc89367a5622748dd7c37b89ac300a663b8b98e9 (patch) | |
tree | 07cea3163e2e9a300afda171fa4a7aed793dd153 /sc/qa/unit/ucalc.cxx | |
parent | fe88326d35579f2c88efe96a45911affa9c9f174 (diff) |
Formula Wizard: evaluating expressions always in matrix context is wrong
Change-Id: I276f7bbf2bd6fa7c67d8691634ad9d79e4a08b1c
Diffstat (limited to 'sc/qa/unit/ucalc.cxx')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index 8de363a75dd7..ccb361942419 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -6585,7 +6585,7 @@ void Test::testFormulaWizardSubformula() m_pDoc->SetString(ScAddress(1,1,0), "=1/0"); // B2 m_pDoc->SetString(ScAddress(1,2,0), "=gibberish"); // B3 - ScSimpleFormulaCalculator pFCell1( m_pDoc, ScAddress(0,0,0), "=B1:B3" ); + ScSimpleFormulaCalculator pFCell1( m_pDoc, ScAddress(0,0,0), "=B1:B3", true ); sal_uInt16 nErrCode = pFCell1.GetErrCode(); CPPUNIT_ASSERT( nErrCode == 0 || pFCell1.IsMatrix() ); CPPUNIT_ASSERT_EQUAL( OUString("{1;#DIV/0!;#NAME?}"), pFCell1.GetString().getString() ); @@ -6593,7 +6593,7 @@ void Test::testFormulaWizardSubformula() m_pDoc->SetString(ScAddress(1,0,0), "=NA()"); // B1 m_pDoc->SetString(ScAddress(1,1,0), "2"); // B2 m_pDoc->SetString(ScAddress(1,2,0), "=1+2"); // B3 - ScSimpleFormulaCalculator pFCell2( m_pDoc, ScAddress(0,0,0), "=B1:B3" ); + ScSimpleFormulaCalculator pFCell2( m_pDoc, ScAddress(0,0,0), "=B1:B3", true ); nErrCode = pFCell2.GetErrCode(); CPPUNIT_ASSERT( nErrCode == 0 || pFCell2.IsMatrix() ); CPPUNIT_ASSERT_EQUAL( OUString("{#N/A;2;3}"), pFCell2.GetString().getString() ); |