Skip to content

selection of entities for dragging is too greedy #161

@whitequark

Description

@whitequark

Open the attached file:
bug.zip
Rotate to the following view and position the cursor as follows:
2820
Drag with mouse. Both points will get dragged.

As a bonus I once got this crash:

File /home/whitequark/Work/solvespace/src/dsc.h, line 334, function FindById:
Assertion 'Cannot find handle' failed: ((t != NULL) == false).
Backtrace:
 0: ./bin/solvespace(_ZN10SolveSpace14assert_failureEPKcjS1_S1_S1_+0x78) [0x55580e551107]
 1: ./bin/solvespace(_ZN10SolveSpace6IdListINS_6EntityENS_7hEntityEE8FindByIdES2_+0x5a) [0x55580e51ad5c]
 2: ./bin/solvespace(_ZN10SolveSpace6Sketch9GetEntityENS_7hEntityE+0x24) [0x55580e51a42e]
 3: ./bin/solvespace(_ZN10SolveSpace14GraphicsWindow21StartDraggingByEntityENS_7hEntityE+0x20) [0x55580e5d335e]
 4: ./bin/solvespace(_ZN10SolveSpace14GraphicsWindow24StartDraggingBySelectionEv+0xa0) [0x55580e5d34e6]
 5: ./bin/solvespace(_ZN10SolveSpace14GraphicsWindow10MouseMovedEddbbbbb+0xa87) [0x55580e5d3f71]
 6: ./bin/solvespace(_ZN10SolveSpace14GraphicsWidget22on_motion_notify_eventEP15_GdkEventMotion+0xd0) [0x55580e52ec22]
...

but have no real way to reproduce it except by randomly dragging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions