Bug 523081 - Deleting points from a vector shape with multiple disjoint subpaths deletes the wrong points
Summary: Deleting points from a vector shape with multiple disjoint subpaths deletes t...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tools/Vector (other bugs)
Version First Reported In: 5.3.2.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-07-15 08:22 UTC by cakenotfound
Modified: 2026-07-27 11:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Before and after deletion. The wrong points are deleted. (205.71 KB, image/png)
2026-07-15 08:22 UTC, cakenotfound
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cakenotfound 2026-07-15 08:22:17 UTC
Created attachment 194321 [details]
Before and after deletion. The wrong points are deleted.

DESCRIPTION
Deleting multiple points at once from a vector shape with multiple subpaths deletes the wrong points.

STEPS TO REPRODUCE
1. Create a vector layer.
2. Use the line tool.
3. Add a couple of points on the line.
4. Right click on some of the segments and click "Break at segment". Now there are multiple disjoint line segments.
5.  Select a couple of line segments.
6. Delete them.

OBSERVED RESULT
The selected segments are deleted.

EXPECTED RESULT
A mix of selected and unselected segments are deleted.
Comment 1 cakenotfound 2026-07-15 08:27:58 UTC
I mixed up the OBSERVED RESULT and EXPECTED RESULT sections. The bug report should say:

OBSERVED RESULT
A mix of selected and unselected segments are deleted.

EXPECTED RESULT
The selected segments are deleted.
Comment 2 Halla Rempt 2026-07-15 08:57:43 UTC
I think I can confirm the issue: I've tried it and not all selected segments were deleted. I don't see unselected segments deleted, but that might just have been by chance.
Comment 3 Bug Janitor Service 2026-07-17 12:15:50 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2865
Comment 4 Dmitry Kazakov 2026-07-27 11:33:34 UTC
Git commit 329d8714c652a9c3a519e240a9c835fd9aebeef6 by Dmitry Kazakov, on behalf of Luna Lovecraft.
Committed on 27/07/2026 at 11:11.
Pushed by dkazakov into branch 'master'.

Fix subpath deletion failing sometimes

Before this commit sometimes some subpaths would fail to be deleted due
to subpath indices shifting when being deleted

M  +6    -0    libs/flake/commands/KoPathPointRemoveCommand.cpp

https://invent.kde.org/graphics/krita/-/commit/329d8714c652a9c3a519e240a9c835fd9aebeef6
Comment 5 Dmitry Kazakov 2026-07-27 11:38:23 UTC
Git commit 61aa0c751573866dbc1ef0e8d2e96e245441ec53 by Dmitry Kazakov, on behalf of Luna Lovecraft.
Committed on 27/07/2026 at 11:38.
Pushed by dkazakov into branch 'krita/6.0'.

Fix subpath deletion failing sometimes

Before this commit sometimes some subpaths would fail to be deleted due
to subpath indices shifting when being deleted

M  +6    -0    libs/flake/commands/KoPathPointRemoveCommand.cpp

https://invent.kde.org/graphics/krita/-/commit/61aa0c751573866dbc1ef0e8d2e96e245441ec53