PCB Editor - 3D view export to PNG/JPEG – highlights item under cursor when clicking "Save" or "Yes"
Description
If you are exporting from 3D viewer PNG or JPG picture, dialog "Confirm Save as" (button "Yes") does not process mouse click event properly. The result is that the viewer highlights a device first (resistor in our example) and then creates the picture of board with highlighted device.
The same problem occurs in dialog "3D Image File Name" (button "Save").
If you move dialog off the 3D viewer window the saved image would not contain picture the board but content of window which is below the cursor at click. For example you will get image of schematic sheet instead of picture of board.
Picture of dialog just before click:
Workaround is to carefully move "Confirm Save as" dialog so that under button "Save" there is board picture where is no device. Then click will not highlight any device.
Steps to reproduce
- Load PCB design into the PCB Editor
- Run 3D viewer
- Export Current View as PNG or JPEG
KiCad Version
Application: KiCad PCB Editor x64 on x64
Version: (7.0.0), release build
Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.0.1
FontConfig 2.14.1
libcurl/7.83.1-DEV Schannel zlib/1.2.13
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Feb 12 2023 01:35:19
wxWidgets: 3.2.1 (wchar_t,wx containers)
Boost: 1.80.0
OCC: 7.6.2
Curl: 7.83.1-DEV
ngspice: 39
Compiler: Visual C++ 1934 without C++ ABI
Build settings:
KICAD_SPICE=ON