Skip to content

Leftover segment after breaking track generation by right-click #1083

@JFritzle

Description

@JFritzle

Describe the bug

Generating a track segment from A to B may take some time, e.g. long distant hiking segment.
When breaking router's segment calculation by right-click, we notice two cases:

  • the usual and normal one:
    • latest clicked track endpoint B gets discarded
    • no track segment from A to B is drawn
    • starting point of a new track segment becomes again green marked starting point A
  • the rare unexpected one:
    • latest clicked track endpoint B gets discarded
    • track segment from A to B is already drawn into map because segment calculation has finished during right-click
    • starting point of a new track segment becomes again green marked starting point A
    • leftover segment keeps visible until a new track segment gets generated or track generation gets aborted

What have you done to circle down the problem?

To Reproduce

  1. Generate a long distant and time consuming track segment from point A to point B
  2. Break track segment generation almost simultaneously when router's track segment calculation to point B finishes
  3. You may notice that point B gets discarded although track segment from A to B is already calculated and drawn
  4. If not, repeat steps 1 and 2

Expected behavior

Either: Point B does not get discarded if track segment from A to B is already drawn.
Or: If point B gets discarded, leftover already drawn track segment from A to B gets withdrawn from map.

Screenshots

Green marked point on the left has been starting point A and became again starting point A after breaking track segment generation by right-click while segment to endpoint B is already calculated and drawn:
Image
Notice: Track distance in Track Metrics box is 0.0 m, which is the correct distance from A to A.

Attachments

Tracebacks

Desktop

  • OS: any
  • QMapShack Version: dev version
  • Window Manager: -

Additional context

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