Duplication of footprint text fields fails silently in pcbnew
The duplication operation in pcbnew normally duplicates the full footprint even if only a pad is selected. However, if only a text field (for example the reference) is selected then it fails without user feedback.
Possible solutions:
- make it behave the same as when duplicating while a pad is selected (duplicate the footprint)
- error message popup (The entry in the right click context menu might benefit from being inactive)
- duplicate the field within the pcb included footprint (solution will need to take #3828 (closed) into account)
- create a new text primitive independent of the footprint with the same text as the current value of the duplicated text field (unlinked copy)
Application: Pcbnew
Version: 5.1.5-1.fc30, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.65.3 OpenSSL/1.1.1d-fips zlib/1.2.11 brotli/1.0.7 libidn2/2.3.0 libpsl/0.20.2 (+libidn2/2.0.5) libssh/0.9.3/openssl/zlib nghttp2/1.39.2
Platform: Linux 5.4.12-100.fc30.x86_64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.69.0
OpenCASCADE Technology: 7.4.0
Curl: 7.65.3
Compiler: GCC 9.2.1 with C++ ABI 1013
Build settings:
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=ON
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=OFF
KICAD_USE_OCC=ON
KICAD_SPICE=ON
Edited by Seth Hillbrand