[eeschema] Inconsistent reference field parsing during edit and copy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Low
|
Unassigned |
Bug Description
Application: kicad
Version: (2018-02-10 revision a04965c36)-makepkg, release build
Libraries:
wxWidgets 3.0.3
libcurl/7.54.1 OpenSSL/1.0.2l zlib/1.2.11 libssh2/1.8.0 nghttp2/1.23.1 librtmp/2.3
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.3 (wchar_t,wx containers,
Boost: 1.60.0
Curl: 7.54.1
Compiler: GCC 7.1.0 with C++ ABI 1011
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_SPICE=ON
To reproduce:
1. In Eeschema, place a component (for example, a resistor).
2. Change its reference to R1.1 (hotkey: U).
3. Copy the component (hotkey: C).
4. Note that its reference is now (correctly) R1.?
5. Edit the copied component's reference (hotkey: U).
6. Note that the selection is (correctly) automatically on the "?" part of the reference.
7. Edit the original component's reference (hotkey: U).
8. Note that the selection is (inconsistently, incorrectly) on the "1.1" part of the reference.
What is expected:
In step 8, the selection should only be on the last 1.
What actually happens:
In step 8, the selection is on 1.1.
Comments
Copy seems to parse the reference such that the prefix is treated as everything up to and including the last non-numeric character. This was a pleasant surprise after the behaviour of KiCAD 4, and should be kept. However, edit seems to parse the reference differently such that the prefix is treated as everything up to but not including the first non-numeric character. These are inconsistent. I would like to have the prefix for both operations being everything up to and including the last non-numeric character.
tags: | added: starter |
Changed in kicad: | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in kicad: | |
status: | Triaged → In Progress |
Changed in kicad: | |
milestone: | none → 5.1.0 |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Text selection now defaults to last numeric value in reference field.