[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - sc/source
Winfried Donkers
winfrieddonkers at libreoffice.org
Mon Feb 16 04:16:52 PST 2015
sc/source/core/tool/interpr3.cxx | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
New commits:
commit b9088afc9f4f93548c668d81dd55e9bb63f91d80
Author: Winfried Donkers <winfrieddonkers at libreoffice.org>
Date: Mon Jan 19 17:41:52 2015 +0100
fdo#88547 allow inline date-arrays for array functions
(Cherry-picked from: I090633944f6514964949566ffe94038b565abff4)
(Reviewed-on: https://gerrit.libreoffice.org/14019)
Change-Id: Iae5f3d1f80dbddfc58d73cfb4642a7809cfc155c
Reviewed-on: https://gerrit.libreoffice.org/14477
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Eike Rathke <erack at redhat.com>
diff --git a/sc/source/core/tool/interpr3.cxx b/sc/source/core/tool/interpr3.cxx
index 5e0af0d..ead9dec 100644
--- a/sc/source/core/tool/interpr3.cxx
+++ b/sc/source/core/tool/interpr3.cxx
@@ -3721,6 +3721,14 @@ void ScInterpreter::GetNumberSequenceArray( sal_uInt8 nParamCount, vector<double
for (SCSIZE i = 0; i < nCount; ++i)
if (!pMat->IsString(i))
rArray.push_back( pMat->GetDouble(i));
+ else
+ {
+ // fdo 88547 try to convert string to (date)value
+ OUString aStr = pMat->GetString( i ).getString();
+ double fVal = ConvertStringToValue( aStr );
+ if ( !nGlobalError )
+ rArray.push_back( fVal );
+ }
}
}
break;
@@ -3741,7 +3749,6 @@ void ScInterpreter::GetNumberSequenceArray( sal_uInt8 nParamCount, vector<double
void ScInterpreter::GetSortArray( sal_uInt8 nParamCount, vector<double>& rSortArray, vector<long>* pIndexOrder )
{
GetNumberSequenceArray( nParamCount, rSortArray);
-
if (rSortArray.size() > MAX_ANZ_DOUBLE_FOR_SORT)
SetError( errStackOverflow);
else if (rSortArray.empty())
More information about the Libreoffice-commits
mailing list