Pasting rows into pin table doesn't work when columns are hidden
Description
When copying rows from the pin table, you get exactly what you see on the screen. When pasting rows back into the pin table, column visibility is not taken into account, and values are wrapped to fill in any empty fields.
I would expect column visibility to matter when pasting, and I don't think paste data should wrap to fill the selection.
Steps to reproduce
- Open a part with some pins.
- Open the pin table.
- Enable columns "number", "name", "electrical type", "style", "orientation", "length", "x position", "y position"
- Select multiple rows and copy them.
- Paste those rows back into the table somewhere.
What you'll see is that the hidden columns "number text size" and "name text size" consume the "length" and "x position" values, "y position" is placed in "length", then "number" and "name" are repeated placed in "x position" and "y position".
Copying:
Pasting:
With hidden columns visible, we can see what happened:
Workaround:
When copying and pasting, make all columns are visible.
KiCad Version
Application: KiCad Symbol Editor (64-bit)
Version: (6.0.0), release build
Libraries:
wxWidgets 3.1.5
Platform: Windows 10 (build 19044), 64-bit edition, 64 bit, Little endian, wxMSW
wxWidgets: 3.1.5 (wchar_t,wx containers)
Boost: 1.76.0
OCC: 7.5.0
Curl: 7.78.0-DEV
ngspice: 35
Compiler: Visual C++ 1929 without C++ ABI
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON