Skip to content

Custom miterlimit is not applied #36

@christianAppl

Description

@christianAppl

Custom miterlimits are seemingly not applied, when drawing pathes. This is caused by a minor flaw in one of the if statements in "SVGGraphics2D.strokeStyle()"

The statement's (assumed) intended behaviour:
Only if the absolute difference between the set miterlimit and the default miter limit(4) surpasses 0.001 a custom miter limit shall be appended to the style String.

For this reason:

It is:

if (Math.abs(DEFAULT_MITER_LIMIT - miterLimit) < 0.001) {
    b.append("stroke-miterlimit: ").append(geomDP(miterLimit));        
}

But it should be:

if (Math.abs(DEFAULT_MITER_LIMIT - miterLimit) > 0.001) {
   b.append("stroke-miterlimit: ").append(geomDP(miterLimit));        
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions