Skip to content

[BUG] erasing the first vertex of a closed path can cause that portion to not erase #128

@BaronAWC

Description

@BaronAWC

Describe the bug
Rectangles and ellipses are the common paths that will have closed stroke paths, and erasing one corner can result in the corner stroke not erasing properly. This property also applies to any other closed path though.

To reproduce
Steps to reproduce the behavior:

  1. create a rectangle or ellipse
  2. select the eraser
  3. erase the bottom left corner (rectangle) or left side (ellipse) of the shape. the stroke will still be there
  4. select that part of the border with the cursor. the piece of border that was supposed to be erased is actually separate from the rest of the border

Weirdly, if you erase more than half of the stroke, the issue seems to go away.

Expected behavior
The border is removed properly.

Screenshots
Image

Editor version
Reproducible in all modern versions of Wick

Do you have a suggested solution to this issue? (ex. has another program fixed this bug a certain way? Are you familiar with where in the code base someone would need to fix this issue?)
Most likely something in Layer.erase.js eraseStroke()
Not bugged when you use the subtract function, but that's probably because the border and fill are separated for the eraser

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions