Forum Bugs

SVG Path: Closed path directly followed by LineTo fails to render

buyan
When SVG path contains points which has closure(Z) and directly followed by lineto (L), prince fails to render whole pdf with below error:
prince: internal error: invalid svg command list

Simple example is as below. It is valid SVG and correctly rendered on browsers:
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<svg width="200px" height="200px" viewBox="0 0 200 200" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">
<path d="M10,10 L60,10 L60,60 Z L10,60" fill="none" stroke="Black" stroke-width="1"/>
</svg>


Prince version having this problem is as below, 64bit:
..\prince-20150914-windows\bin>prince.exe --version
Prince 20150914
Copyright 2002-2015 YesLogic Pty. Ltd.
Non-commercial License


Older Prince version working fine with this SVG is below, x86:
C:\Program Files (x86)\Prince\engine\bin>prince.exe --version
Prince 10 rev 4
Copyright 2002-2015 YesLogic Pty. Ltd.
Non-commercial License


PS: SVG is attached
  1. path.svg0.3 kB
    Simple SVG path
mikeday
Thank you, we will fix this issue for the next maintenance release.
mikeday
This issue has been fixed in Prince 10 rev 5, available now.
buyan
Thanks!