pcbnew: wire segment with very small length not visible. (lp:#1853573)
Original report created by Arpan Jati (arpanj)
Found the bug while dragging and redrawing some vias.
Steps to Reproduce (pcbnew accelerated)
Draw a wire segment of a very small length for example:
1) (X0,Y0) : 117, 60 | (X1,Y1) : 117.000001, 60
- The wire segment becomes invisible. (it works normally legacy
mode)
2) (X0,Y0) : 117, 60 | (X1,Y1) : 117.000004, 60
- The wire segment becomes invisible. (it works normally legacy mode)
- It is sometimes visible when being dragged, placed differently.
If X0 and X1 is the same then it is visible.
Looks like some minimum distance code issue.
Application: Pcbnew
Version: (5.1.4)-1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6
libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian,
wxMSW
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.68.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.61.1
Compiler: GCC 8.2.0 with C++ ABI 1013
Build settings:
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=OFF
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=OFF
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_USE_OCC=OFF
KICAD_SPICE=ON
Original tags: pcbnew