[Libreoffice-commits] libvisio.git: src/lib

Fridrich Å trba fridrich.strba at bluewin.ch
Sun Apr 28 04:45:06 PDT 2013


 src/lib/gentoken.pl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

    Token ID 0 is special in the way the has handles it

diff --git a/src/lib/gentoken.pl b/src/lib/gentoken.pl
index 27da298..67689fb 100644
--- a/src/lib/gentoken.pl
+++ b/src/lib/gentoken.pl
@@ -71,9 +71,9 @@ print ( HXX "\n" );
 $i = 0;
 foreach( sort(keys(%tokens)) )
 {
+    $i = $i + 1;
     print( HXX "const int $tokens{$_} = $i;\n" );
     print( GPERF "$_,$tokens{$_}\n" );
-    $i = $i + 1;
 }
 print ( GPERF "%%\n" );
 print ( HXX "\n" );


More information about the Libreoffice-commits mailing list