Skip to content

"Split annotations by lines" with line thickness 0 px doesn’t work with multiple lines #1978

@AfshinBahramy

Description

@AfshinBahramy

Bug report

Describe the bug

In v0.6, when using Objects > Annotations > Split annotations by lines, the tool doesn’t work properly if I have multiple lines and set Line thickness to 0 px.

Instead of splitting, the lines are just removed and the annotation isn’t split at all.

If I set thickness to any value greater than 0 px, it works fine. With a single line, 0 px also still works (like it did in v0.5). But with multiple lines at 0 px, it fails.

In v0.5, 0 px worked fine for both single and multiple lines.

To Reproduce

  1. Draw an annotation.
  2. Draw 2 or more lines across it.
  3. Go to Objects > Annotations > Split annotations by lines.
  4. Set Line thickness = 0 px.
  5. Run the split → annotation isn’t split.

Expected behavior

Annotations should split correctly with multiple lines even when Line thickness = 0 px, same as in v0.5.

Screenshots

Image

Desktop (please complete the following information):

  • OS: [macOS Sequoia 15.5]
  • QuPath Version: [0.6.0-arm64]

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions