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

segmentation fault when drawing angle lines #1751

Open
hapees opened this issue Mar 14, 2024 · 3 comments
Open

segmentation fault when drawing angle lines #1751

hapees opened this issue Mar 14, 2024 · 3 comments

Comments

@hapees
Copy link

hapees commented Mar 14, 2024

Expected behaviour

An empty drawing.
Draw horiz. line, draw vert. line, draw line at an angle.
Left Mouse Click draws line.
Right Mouse Click - next task.

Observed behaviour

An empty drawing.
Lines - Horizontal - Left Mouse Click draws line.
Right Mouse Click causes segmentation fault.
(regardless of lengtt, snap point)

Steps to reproduce or sample file

See observed behaviour.

Operating System and LibreCAD version info

OS: Fedora 39 6.7.9-200.fc39.x86_64
LibreCAD:
Version: 2.2.1_alpha-350-g311a96ba
Compiler: GNU GCC 13.2.1
Compiled on: Mar 14 2024
Qt Version: 5.15.12
Boost Version: 1.81.0

@dxli
Copy link
Member

dxli commented Mar 15, 2024

82ab47a

More issues like this are expected. Need to move ownership of option widgets to parent actions

@hapees
Copy link
Author

hapees commented Mar 16, 2024

Hm..
is fixed.
Thanks a lot :-)

@dxli
Copy link
Member

dxli commented Apr 23, 2024

The option widget owneship fix for print preview:

2994458

The logic and lifetime control is cleaner when the action actually owns the option widget

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

No branches or pull requests

2 participants