Copying pads in footprint editor changes layers involved
<!-- --------Before Creating a New Issue----------- * Limit report to a single issue. * Search the issue tracker to verify the issue has not already been reported. * Complete all instructions between `template comment markers <>. * Keep report contents limited to the necessary information required to fix the issue. * When creating an issue against the stable version of KiCad, make sure the latest available stable version is installed as issues may have already been resolved in later stable versions. --> # Description <!-- What is the current behavior and what is the expected behavior? --> When copypasting a pad the layers involved are changed from (layers *.Cu *.Mask) to (layers *.Mask "F.Cu" "In1.Cu" "B.Cu") although the edit dialogues for both pads indicate that all copper layers are selected. This will work OK for two layer boards, but for four layers the pad do not connect on the second inner layer. <!-- If the issue is visual/graphical, please attach screenshots of the problem. --> <!-- Add the issue details below this line and before the "Steps to reproduce" heading. --> (pad "1" thru_hole rect (at 2.3 -2.9) (size 1.905 2) (drill 1.2) (layers *.Mask "F.Cu" "In1.Cu" "B.Cu") (tstamp 254d61fc-23d8-4305-a453-23729a810383)) (pad "1" thru_hole rect (at -3.6 -2.9) (size 1.905 2) (drill 1.2) (layers *.Cu *.Mask) (tstamp 3ffa5194-0a94-491b-81f9-b08f6105398e)) The 2nd pad is the original # Steps to reproduce <!-- If there are multiple steps to reproduce it or it is a visual issue, then providing a screen recording as an attachment to this report is recommended. --> <!-- If this issue is specific to a project, please attach the necessary files to this issue. --> <!-- Add the steps to reproduce using the numbers below --> <!-- Add new step numbers before the "KiCad Version" heading. --> 1. create new through hole footprint 2. place pad 3. copy and paste pad Same problem with previous version # KiCad Version <!-- Copy version information (from main menu Help->About KiCad ->Copy Version Info) and paste it between the triple backticks below to preserve the formatting. --> ```Application: KiCad Footprint Editor Version: 6.0.10-86aedd382b~118~ubuntu20.04.1, release build Libraries: wxWidgets 3.0.4 libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 Platform: Linux 5.4.0-135-generic x86_64, 64 bit, Little endian, wxGTK, KDE, x11 Build Info: Date: Dec 18 2022 19:39:35 wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24 Boost: 1.71.0 OCC: 7.5.2 Curl: 7.86.0 ngspice: 36 Compiler: GCC 9.4.0 with C++ ABI 1013 Build settings: KICAD_USE_OCC=ON KICAD_SPICE=ON ```
issue