summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/stringutil.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-04-10 18:01:37 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-04-10 18:03:51 +0200
commit5b981e1dbfc1460e00bf35e0dd63e0c77a8119d9 (patch)
tree270055055a6b91c8881a5d7f7bfdd28a5992f9d8 /sc/source/core/tool/stringutil.cxx
parent08fe6f085b9614cec51269f30f969617dd55d7db (diff)
add the missing type information for the parsed string
Change-Id: I4e2567ba2a9000763c54b7d38ab4ba66a13a77f4
Diffstat (limited to 'sc/source/core/tool/stringutil.cxx')
-rw-r--r--sc/source/core/tool/stringutil.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/tool/stringutil.cxx b/sc/source/core/tool/stringutil.cxx
index 7753bdf81e41..ac2ec76042b6 100644
--- a/sc/source/core/tool/stringutil.cxx
+++ b/sc/source/core/tool/stringutil.cxx
@@ -358,7 +358,10 @@ ScInputStringType ScStringUtil::parseInputString(
sal_uInt32 nNumFormat = rFormatter.GetStandardIndex(eLang);
if (rFormatter.IsNumberFormat(rStr, nNumFormat, aRet.mfValue))
+ {
+ aRet.meType = ScInputStringType::Number;
aRet.mnFormatType = rFormatter.GetType(nNumFormat);
+ }
else if (!rStr.isEmpty())
aRet.meType = ScInputStringType::Text;