[Libreoffice-commits] .: svl/source

Eike Rathke erack at kemper.freedesktop.org
Sat Apr 14 17:40:14 PDT 2012


 svl/source/numbers/zforfind.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit a6ad8e8f0a52881311b16af611e1ad701946c608
Author: Eike Rathke <erack at redhat.com>
Date:   Sun Apr 15 02:38:46 2012 +0200

    resolved fdo#48706 recognize $.12 as currency number

diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx
index 9a0c59a..3c5d835 100644
--- a/svl/source/numbers/zforfind.cxx
+++ b/svl/source/numbers/zforfind.cxx
@@ -1811,6 +1811,11 @@ bool ImpSvNumberInputScan::ScanStartString( const String& rString,
             if ( nSign )   // DM -1
                 SkipBlanks(rString, nPos);
         }
+        if ( GetDecSep(rString, nPos) )             // decimal separator follows currency
+        {
+            nDecPos = 1;
+            SkipBlanks(rString, nPos);
+        }
     }
     else
     {


More information about the Libreoffice-commits mailing list