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

Michael Stahl mstahl at redhat.com
Tue Oct 1 03:07:17 PDT 2013


 extensions/source/propctrlr/standardcontrol.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4e601bda1798dd9e1651e41db0e17818c62d1763
Author: Michael Stahl <mstahl at redhat.com>
Date:   Tue Oct 1 12:04:09 2013 +0200

    extensions: fix swapped "insert" parameters
    
    Change-Id: If9667cad9fcc0ff3b1cc8d36c0619d80d7f3e2b9

diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx
index 50d409b..61c2c0e 100644
--- a/extensions/source/propctrlr/standardcontrol.cxx
+++ b/extensions/source/propctrlr/standardcontrol.cxx
@@ -657,9 +657,9 @@ namespace pcr
             nVal >>= 4;
             if (c<=9) c += '0';
             else c += 'A' - 10;
-            aStr.insert(c,0);
+            aStr.insert(0, c);
         }
-        while (aStr.getLength() < nLength) aStr.insert('0',0);
+        while (aStr.getLength() < nLength) aStr.insert(0, '0');
         return aStr.makeStringAndClear();
     }
 


More information about the Libreoffice-commits mailing list