filter/source/svg/gentoken.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit fa535cf1755edcba630369b7ee1ae1605474d29c Author: Fridrich Å trba <fridrich.st...@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" );
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits