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

Julien Nabet serval2412 at yahoo.fr
Sun Nov 24 06:07:59 PST 2013


 sax/source/tools/converter.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 87cce82dbc0ae24b207c45dc3f27c8f51c0fbb8b
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Nov 24 15:07:07 2013 +0100

    cppcheck: fix same expression on both sides
    
    Change-Id: I3de69e2ae186ea1ae8f792588c04b4e799ce1331

diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx
index a2b3dd0..c77e02a 100644
--- a/sax/source/tools/converter.cxx
+++ b/sax/source/tools/converter.cxx
@@ -2330,7 +2330,7 @@ sal_Int16 Converter::GetUnitFromString(const OUString& rString, sal_Int16 nDefau
             case sal_Unicode('I'):
             {
                 if(nPos+1 < nLen && (rString[nPos+1] == 'n'
-                    || rString[nPos+1] == 'n'))
+                    || rString[nPos+1] == 'N'))
                     nRetUnit = MeasureUnit::INCH;
                 break;
             }


More information about the Libreoffice-commits mailing list