Opened 13 years ago

Closed 12 years ago

#2972 closed defect (fixed)

SVG Paths that are not closed do not render properly in VML

Reported by: Tom Trenka Owned by: Eugene Lazutkin
Priority: high Milestone: 0.9
Component: gfx (svg+vml) Version: 0.4.2
Keywords: Cc:
Blocked By: Blocking:

Description

If you try to do something like this:

surface.createPath("M0,0 Q100,-50 200,0").setStroke("black");

...the path element is never rendered in IE. However, this:

surface.createPath("M0,0 Q100,-50 200,0 Z").setStroke("black");

...will be rendered correctly. As far as I can tell, a path element is never inserted into the document.

Change History (4)

comment:1 Changed 13 years ago by Tom Trenka

Component: Generalgfx (svg+vml)

comment:2 Changed 13 years ago by Tom Trenka

Testing between Eugene and I determined that for some reason you cannot end a path segment in VML with a quadratic bezier curve; the workaround (Eugene will commit) is to append " l0,0" to the end of the path segment.

comment:3 Changed 12 years ago by Eugene Lazutkin

Status: newassigned

comment:4 Changed 12 years ago by Eugene Lazutkin

Resolution: fixed
Status: assignedclosed

(In [9839]) Adding "r0,0" to the end of the path segment in VML renderer. Otherwise it tries to wrap control points for curves, which differs with SVG. Minor edit: normalizing all tests. Fixes #2972.

Note: See TracTickets for help on using tickets.