Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PointSymbolEditorWidget: Don't duplicate CurveStart property #2093

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dl3sdo
Copy link
Member

@dl3sdo dl3sdo commented Sep 18, 2022

When adding a path point by clicking on the '+' button either a default point is appended to the path or an existing path point is duplicated.
However, when duplicating an existing point, also the CurveStart property was duplicated which lead to two successive path points with a set CurveStart property although the next two path points following a CurveStart path point define the course of the curve and thus can't be a CurveStart path point itself.
Resolves #2090

Another fix addresses the issue that a default point that was added was not shown immediately.

Finally there was the issue that removing line parts disabled the 'Line closed' checkbox but did not remove the checkmark.

@dl3sdo dl3sdo marked this pull request as draft December 9, 2024 10:05
@dl3sdo
Copy link
Member Author

dl3sdo commented Dec 9, 2024

Waiting for #2091 to be merged.

When adding a path point by clicking on the '+' button either a default
point is appended to the path or an existing path point is duplicated.
However, when duplicating an existing point, also the CurveStart
property was duplicated which lead to two successive path points with
a set CurveStart property although the next two path points following
a CurveStart path point define the course of the curve and thus can't
be a CurveStart path point itself.

Closes OpenOrienteeringGH-2090 (Symbol Editor: Cannot remove coordinate pairs).
When adding a path point by the '+' button the symbol was not updated.
Since the point is normally duplicated this had no visual impact.
However, if no row is selected then a default point at (0,0) is created
which was not shown in this case.
When the 'Line closed' checkmark was set and all lines were removed the
checkbox remained set but became disabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Symbol Editor: Cannot remove coordinate pairs
1 participant