diff options
author | Jens Carl <j.carl43@gmx.de> | 2018-01-26 21:06:02 +0000 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-01-30 13:16:20 +0100 |
commit | 9427ab79de3824b8b3edc692c992fa29e5b3cbed (patch) | |
tree | 78179d35d541b165386eaa908c3acbb436402396 /sc/source/ui/vba/vbarange.cxx | |
parent | 88ffe971d98715483890448317e82ea168d750c5 (diff) |
Use new property FormulaResultType2 to determinate ...
what result to return if the cell content type is formula.
Cleans up the confusion which was introduced with commit
8a73799d12f0d2dc04890b96bd0adf0ffcf50d17.
Change-Id: Ie4346173abf6bc3732d2fec06341f4e32cf68b82
Reviewed-on: https://gerrit.libreoffice.org/48725
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/source/ui/vba/vbarange.cxx')
-rw-r--r-- | sc/source/ui/vba/vbarange.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index 24de46dba614..f9577e461c74 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -825,11 +825,11 @@ void CellValueGetter::visitNode( sal_Int32 x, sal_Int32 y, const uno::Reference< { uno::Reference< beans::XPropertySet > xProp( xCell, uno::UNO_QUERY_THROW ); - table::CellContentType eContentType = table::CellContentType_VALUE; + sal_Int32 nResultType = sheet::FormulaResult::VALUE; // some formulas give textual results - xProp->getPropertyValue( "CellContentType" ) >>= eContentType; + xProp->getPropertyValue( "FormulaResultType2" ) >>= nResultType; - if ( eContentType == table::CellContentType_TEXT ) + if ( nResultType == sheet::FormulaResult::STRING ) { uno::Reference< text::XTextRange > xTextRange(xCell, ::uno::UNO_QUERY_THROW); aValue <<= xTextRange->getString(); |