summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/html/htmlpars.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx
index 110a7cb57fd9..584aaeffc5b8 100644
--- a/sc/source/filter/html/htmlpars.cxx
+++ b/sc/source/filter/html/htmlpars.cxx
@@ -2188,6 +2188,9 @@ OUString decodeNumberFormat(const OUString& rFmt)
}
if (nDigitCount)
{
+ // Hex-encoded character found. Decode it back into its
+ // original character. An example of number format with
+ // hex-encoded chars: "\0022$\0022\#\,\#\#0\.00"
sal_Int32 nVal = OUString(p1, nDigitCount).toInt32(16);
aBuf.append(static_cast<sal_Unicode>(nVal));
}