Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#4036 closed defect (fixed)

non-solid strokes corrupt in SVG

Reported by: guest Owned by: Eugene Lazutkin
Priority: high Milestone: 0.9
Component: DojoX GFX Version: 0.9
Keywords: stroke, svg Cc:
Blocked By: Blocking:

Description

Using the 0.9 Beta code: The problem seem to be that the dasharray containing the dash, dot etc. definitions in terms of arrays are by mistake modified. Making a copy of the defining array, before modifing it (e.g. multiplying with the stroke width etc.) solves the problem.

For example, adding the following at row 135 in svg.js solves the problem.

da=da.slice();

The problem persists in trunk, see http://trac.dojotoolkit.org/browser/dojox/trunk/gfx/svg.js#L135

Change History (2)

comment:1 Changed 12 years ago by Eugene Lazutkin

Status: newassigned

comment:2 Changed 12 years ago by Eugene Lazutkin

Resolution: fixed
Status: assignedclosed

(In [10039]) Fixed a bug, when a static constant data were modified by reference. Thx, anonymous! Fixes #4036.

Note: See TracTickets for help on using tickets.