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

Stephan Bergmann sbergman at redhat.com
Thu Dec 18 12:43:02 PST 2014


 vcl/source/control/field.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7ac1522d9edf6ac58856cdb5f8ff548dedd27a63
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Dec 18 21:42:31 2014 +0100

    Fix MSVC build
    
    Change-Id: I14f9b8e7b7e2cdcbdc60de17471b1a3a381d83f0

diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index bd03aad..18d4d88 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -176,7 +176,7 @@ static bool ImplNumericGetValue( const OUString& rStr, sal_Int64& rValue,
     if ( aStr1.isEmpty() )
         aStr1 = "0";
     if ( bNegative )
-        aStr1 = "-" + aStr1;
+        aStr1.insert(0, "-");
 
     // prune and round fraction
     bool bRound = false;


More information about the Libreoffice-commits mailing list