Skip to content

Comments

[MapToolCapture] When undoing, remove whole curve only when it has more than 2 vertices#65027

Open
JuhoErvasti wants to merge 1 commit intoqgis:masterfrom
GispoCoding:fix-58813
Open

[MapToolCapture] When undoing, remove whole curve only when it has more than 2 vertices#65027
JuhoErvasti wants to merge 1 commit intoqgis:masterfrom
GispoCoding:fix-58813

Conversation

@JuhoErvasti
Copy link
Contributor

@JuhoErvasti JuhoErvasti commented Feb 20, 2026

Fixes #58813.

With #51943, if the layer has a different CRS than the project, if you're digitizing with a curve the curve will get transformed into a line with interpolated vertices, which is why when undoing the entire curve gets deleted in case of different CRS's. However, when undoing digitized straight segments this causes the bug described in the issue.

Fix the bug by deleting the entire last curve only if actually contains a transformed curve (has more than 2 vertexes).

@github-actions github-actions bot added the Digitizing Related to feature digitizing map tools or functionality label Feb 20, 2026
@github-actions github-actions bot added this to the 4.0.0 milestone Feb 20, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit 5ba0953)

🍎 MacOS Qt6 builds

Download MacOS Qt6 builds of this PR for testing.
This app is not notarized, run sudo xattr -d com.apple.quarantine /Applications/QGIS*.app to avoid the warning
(Built from commit 5ba0953)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Digitizing Related to feature digitizing map tools or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Digitizing: deleting vertexes with backspace can cause spikes when layer and project CSR don't match

1 participant