[Libreoffice-commits] .: sc/source
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Sun May 6 20:30:24 PDT 2012
sc/source/core/data/dociter.cxx | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
New commits:
commit c0ca1ef1990226cd5d7af6c1f76872e9ad8711f2
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon May 7 05:27:18 2012 +0200
string result of formula is also valid, fdo#49052
Change-Id: I I0beb439381a0d01b27d219b148c47839055b6f62
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx
index f2a9633..92c7cbd 100644
--- a/sc/source/core/data/dociter.cxx
+++ b/sc/source/core/data/dociter.cxx
@@ -615,8 +615,16 @@ bool ScDBQueryDataIterator::DataAccessInternal::getCurrent(Value& rValue)
rValue.mnError = ((ScFormulaCell*)pCell)->GetErrCode();
return true; // gefunden
}
- else
+ else if(mpParam->mbSkipString)
nRow++;
+ else
+ {
+ rValue.maString = static_cast<ScFormulaCell*>(pCell)->GetString();
+ rValue.mfValue = 0.0;
+ rValue.mnError = static_cast<ScFormulaCell*>(pCell)->GetErrCode();
+ rValue.mbIsNumber = false;
+ return true;
+ }
}
break;
case CELLTYPE_STRING:
More information about the Libreoffice-commits
mailing list