git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4739
ffa7fe5e-494d-0410-b361-
a75ebd5db220
elseif(${IMAGE_CONVERTER_${FILE_TYPE}} MATCHES "ksvgtopng")
set (NEW_SCALE ${SCALE})
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})
+ file(STRINGS ${IMAGE_INPUT} NEW_SCALE_LINE REGEX "[^-]width=\"[0-9pxt.]*\"")
+ string(REGEX REPLACE ".*width=\"([0-9]*).*" "\\1" NEW_SCALE ${NEW_SCALE_LINE})
endif()
set(COMMAND_ARGS ${NEW_SCALE} ${NEW_SCALE} ${IMAGE_INPUT} --output ${IMAGE_OUTPUT})
else()