[Libreoffice-commits] core.git: sc/source

Kohei Yoshida kohei.yoshida at gmail.com
Tue Jun 11 15:52:45 PDT 2013


 sc/source/filter/html/htmlpars.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit a8e52f12d277d9f6ee508f6512f3028810ec12ab
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Tue Jun 11 18:50:05 2013 -0400

    Add a comment clarifying the intent of the code that may look like a bug.
    
    Change-Id: Idd340f939bcfbe6bb8cf2f589662ea8691e1606c

diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx
index 110a7cb..584aaef 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));
             }


More information about the Libreoffice-commits mailing list