Paste after copy preserves locked status of items
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Low
|
Jeff Young |
Bug Description
Mouse select a region of your PCB
Right click 'copy', select center, ok.
Paste it somewhere and Kicad asks "Selection contains locked items. Do you want to continue?"
Yes, of course I want to copy my selection !
Application: KiCad
Version: 5.1.4, release build
Libraries:
wxWidgets 3.0.2
libcurl/7.37.0 OpenSSL/1.0.2j zlib/1.2.8 libidn/1.28 libssh2/1.4.3
Platform: Linux 4.4.180-102-default x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.2 (wchar_t,STL containers,
Boost: 1.61.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.37.0
Compiler: GCC 4.8.5 with C++ ABI 1002
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=OFF
Changed in kicad: | |
milestone: | none → 5.1.6 |
summary: |
- Paste ask uneeded question + Paste after copy preserves locked status of items |
Changed in kicad: | |
status: | New → In Progress |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
At the end of the Paste command we call the Move command so that you can place the pasted objects. The Move command is complaining about the locked objects.
There are 2 ways to fix this: special case the move-after-a-paste, or clear the lock flags on a paste.
So the question is, if you copy and paste some locked items, do you expect the pasted items to be locked or not? At first blush I'd say "yes", but then our definition of "locked" is locked to a particular position, and clearly the pasted objects are no longer at that position.
Thoughts?