LibreCAD / LibreCAD

LibreCAD is a cross-platform 2D CAD program written in C++17. It can read DXF/DWG files and can write DXF/PDF/SVG files. It supports point/line/circle/ellipse/parabola/spline primitives. The user interface is highly customizable, and has dozens of translations.
http://librecad.org/
Other
4.48k stars 1.01k forks source link

Fillets cause spurious line(s) #1496

Closed JohnCC330 closed 2 years ago

JohnCC330 commented 2 years ago

Expected behavior

Clean drawing with rounded corners

Observed behavior

New lines appear when changing line style

Steps to reproduce or sample file

Attached a sequence of operations which cause the effect: 1) Start with a 10x10mm rectangle 2) Add fillets (in my case 4mm) 3) Change properties - line style - to medium dash - new lines appear 4) Change props back to continuous - lines remain (plural - there seem to be a double line)

Operating System and LibreCAD version info

Linux Slackware64-current LibreCAD 2.2.0alpha. Screenshot_2022-01-07_04-50-50

melwyncarlo commented 2 years ago

@JohnCC330 It seems to work fine in Edit layer attributes and in Toolbar. Perhaps a video would help?

dellus commented 2 years ago

I can confirm with LC 2.2.0 rc3. It seems to have to do with the rectangle being a polyline. If it is exploded first it doesn't happen.

jbergengh commented 2 years ago

https://user-images.githubusercontent.com/55407804/148573384-d094cda5-f0b4-42d3-83e4-73ceae9be44a.mp4

JohnCC330 commented 2 years ago

Sorry, have been out - life goes on... Thanks for the confirmation, and the video - it shows exactly what happens.

Exploding afterwards permits removing the extra lines. I have the impression that this did not happen in previous versions (say 2.1.xxx)

melwyncarlo commented 2 years ago

@JohnCC330 Now, it should no longer produce the erroneous line upon changing the line type.

JohnCC330 commented 2 years ago

Cheers! Will recompile ASAP.