navit-project.org
http://forum.navit-project.org/

Fix Bug #1222
http://forum.navit-project.org/viewtopic.php?f=11&t=584
Page 1 of 1

Author:  Davo [ 21 Oct 2015, 21:34 ]
Post subject:  Fix Bug #1222

Hi folks, I have added a comment to bug #1222, a suggestion as to how it can be fixed very easily. Please consider.

This bug makes a linux install fail, possibly dependent on what existing tools (such as SVG to PNG converters). Cmake uses strings to search for "width=" in the svg files to determine their width. The problem is that some SVG files use the string "width=" several times, referring to width of lines etc. Cmake uses the last one found. In several cases cmake makes silly large PNG, in othes it fails to make anything. And the install will fail.

Easy solution is to use the first occurrence which is always the drawing width, just add "LIMIT_COUNT 1" to line 22. See the bug report.

This is an easier solution that changing the regex as suggested by tobe deprez who first identified the bug over a year ago.

Davo

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/