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

Fridrich Å trba fridrich.strba at bluewin.ch
Fri Apr 26 06:35:43 PDT 2013


 filter/source/svg/gentoken.pl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fa535cf1755edcba630369b7ee1ae1605474d29c
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date:   Fri Apr 26 15:35:04 2013 +0200

    token id 0 has a special meaning in the hash
    
    Change-Id: I380c0d7640a0047fa53770ddfb6150dd2e3b61be

diff --git a/filter/source/svg/gentoken.pl b/filter/source/svg/gentoken.pl
index a731079..1c7736d 100644
--- a/filter/source/svg/gentoken.pl
+++ b/filter/source/svg/gentoken.pl
@@ -55,9 +55,9 @@ print ( HXX "#include <sal/types.h>\n\n" );
 $i = 0;
 foreach( sort(keys(%tokens)) )
 {
+    $i = $i + 1;
     print( HXX "const sal_Int32 $tokens{$_} = $i;\n" );
     print( GPERF "$_,$tokens{$_}\n" );
-    $i = $i + 1;
 }
 print ( GPERF "%%\n" );
 print ( HXX "const sal_Int32 XML_TOKEN_COUNT = $i;\n" );


More information about the Libreoffice-commits mailing list