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

Grid off on file open prevent selection of entities in block editor #1094

Closed lordofbikes closed 1 year ago

lordofbikes commented 5 years ago

Expected behavior

In block editor entities should be selected by click to modify.

Observed behavior

As discussed in forum, select by click in block editor doesn't work when grid is off on file open. See http://forum.librecad.org/Block-Editing-Issue-tp5716968.html

Steps to reproduce or sample file

Operating System and LibreCAD version info

issue exists in current master HEAD Ubuntu 18.04 LTS, but OS shouldn't matter

dxli commented 1 year ago

Solved by "free snap rework": 4174e1502d57dcd43dc9014da75f1cf5803d88e6

The snapping range is redefined to support when the grid is off. Previously, the snapping range is only reasonable when the grid is on.

The new free snapping scheme also redefined the snapping range for selecting/snapping an entity.