Converting text to a label can create a label with illegal characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Medium
|
Wayne Stambaugh |
Bug Description
While confirming a potential bug on the forum I discovered that I can create a label with spaces (I don't recall off the top of my head any of the other illegal label characters, so I didn't try them).
When normally creating a label the text input box doesn't insert anything when the space bar is pressed. Also, if when creating a label one is able to get a space into the text input box by pasting a string containing spaces, an error is thrown when the OK button is clicked. Both of these behaviors are expected.
One can create a normal text that includes spaces. (This is also expected.) BUT, then one can convert this text into a label, and now one has a label with spaces. ERC doesn't flag this. If one edits this label-with-spaces the OK button will throw an error, but the cancel button doesn't. An error should be thrown when first attempting to convert the text to a label if the text contains illegal characters for labels.
See the attached screenshot of a label (indicated by black character color) with spaces.
My version info:
Application: kicad
Version: (5.1.2)-1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,
Boost: 1.68.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.61.1
Compiler: GCC 8.2.0 with C++ ABI 1013
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
tags: | added: eeschema |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
This appears fixed in the master branch because the context menu option to change type is missing...