Custom Query (1067 matches)
Results (76 - 78 of 1067)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#1223 | fixed | Error in xml handling using xi:include | mineque | |
Description |
When trying to include OSD configs from external file like that:
{{{ <xi:include href="./mineque-osd-darkblue_local.xml"/> <xi:include href="mineque-osd-darkblue_local.xml"/> }}} which is stored in main dir and contain for example: {{{ <osd enabled="yes" type="image" x="0" y="0" src="images/topbar.png" /> <osd enabled="no" type="button" x="50" y="-90" command="play()" src="./dark/appbar.control.play.png" /> <osd enabled="yes" type="image" x="0" y="0" src="images/topbar.png" /> <osd enabled="yes" type="image" x="0" y="380" h="170" src="./images/bottombar.png" /> }}} Navit will read only first line of file and ignoring rest of the file. Tested with Kazer and seems to occur only in windows |
|||
#1222 | fixed | Better REGEX in navit/xpm/CMakeLists.txt | KaZeR | tobe deprez |
Description |
In the file navit/xpm/CMakeLists.txt, there is some code to detect the width of the svg file (line 21-24):
{{{ if (${SCALE} EQUAL 0) file(STRINGS ${IMAGE_INPUT} NEW_SCALE_LINE REGEX "[^-]width=\"[0-9pxt.]*\"") string(REGEX REPLACE ".*width=\"([0-9]*).*" "\\1" NEW_SCALE ${NEW_SCALE_LINE}) endif() }}} This code does not seem to work for some files (museum.svg and hotel.svg if I remember correctly): the ${NEW_SCALE} variable was 0. I don't know exactly what happened, but I think the code read some other width attribute somewhere the svg file. To avoid this, you can use the following code, which specifically tries to read the width attribute in the <svg> tag: {{{ if (${SCALE} EQUAL 0) file (READ ${IMAGE_INPUT} IMAGE_CONTENTS) string(REGEX MATCH "<svg[^>-]*width=\"([0-9]+)(px)?\"[^>]*>" SVG_TAG "${IMAGE_CONTENTS}") set (NEW_SCALE "${CMAKE_MATCH_1}") endif() }}} |
|||
#1221 | fixed | No --output for ksvgtopng | KaZeR | tobe deprez |
Description |
In the file navit/xpm/CMakeLists.txt (line 25, you run the command
{{{ ksvgtopng ${NEW_SCALE} ${NEW_SCALE} ${IMAGE_INPUT} --output ${IMAGE_OUTPUT} }}} However, the syntax of ksvgtopng is {{{ ksvgtopng width height svgfilename outputfilename }}} So, the '--output' should be removed. |
Note: See TracQuery
for help on using queries.