diff options
Diffstat (limited to 'sc/source/core/tool/formularesult.cxx')
-rw-r--r-- | sc/source/core/tool/formularesult.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/core/tool/formularesult.cxx b/sc/source/core/tool/formularesult.cxx index 9602c44d05f7..791dbadcea86 100644 --- a/sc/source/core/tool/formularesult.cxx +++ b/sc/source/core/tool/formularesult.cxx @@ -448,9 +448,16 @@ void ScFormulaResult::SetHybridFormula( const String & rFormula ) void ScFormulaResult::SetHybridValueString( double nVal, const OUString& rStr ) { + if(GetType() == formula::svMatrixCell) + { + SetDouble(nVal); + return; + } + ResetToDefaults(); if (mbToken && mpToken) mpToken->DecRef(); + mpToken = new ScHybridValueCellToken( nVal, rStr ); mpToken->IncRef(); mbToken = true; |