11 Commits

Author SHA1 Message Date
Jeff Young
02b1f552fd Make sure LIB_ID escape context allows for formatting constructs.
Also make sure that value field is updated from name changes when the
symbol is a power symbol (even if it's from the schematic instead of
the library).

Fixes https://gitlab.com/kicad/code/kicad/issues/11093

(cherry picked from commit a9eb7a0e28f7b142739b2c8d619dcd08fadb88ce)
(cherry picked from commit 02252be29d2651ab3d8c09d98891d4ce7005e603)
2022-03-18 12:49:32 -07:00
Seth Hillbrand
40bdd26e39 Revert "Make sure LIB_ID escape context allows for formatting constructs."
This reverts commit 02252be29d2651ab3d8c09d98891d4ce7005e603.
2022-03-17 16:21:38 -07:00
Jeff Young
02252be29d Make sure LIB_ID escape context allows for formatting constructs.
Also make sure that value field is updated from name changes when the
symbol is a power symbol (even if it's from the schematic instead of
the library).

Fixes https://gitlab.com/kicad/code/kicad/issues/11093

(cherry picked from commit a9eb7a0e28f7b142739b2c8d619dcd08fadb88ce)
2022-03-16 15:14:29 +00:00
Marek Roszko
c465a6ebc7 Add some more reserves for string funcs
(cherry picked from commit 2df80c6473a8f6558806dfb2515517e6edb266ee)
2022-03-09 16:45:28 +00:00
Marek Roszko
4e5038eb3e Try and reduce memory allocs when (un)escaping strings
(cherry picked from commit ca5049b6bc8e23689ba350673f04e158b225745c)
2022-03-09 16:45:02 +00:00
Seth Hillbrand
861589d837 Use wxEmptyString instead of wxT( "" )
Also fixes places where ternaries did autopromotion instead of returning
an empty wxString
2022-02-09 10:33:52 -08:00
Seth Hillbrand
e18fc36646 wxT rework for common directory 2022-02-04 16:24:50 -08:00
Jon Evans
0458afe20a Fix escaping of double quotes in LIB_IDs 2021-09-28 20:38:36 -04:00
Jeff Young
59c15842f8 Exclude formatting chars from text width approximation.
Fixes https://gitlab.com/kicad/code/kicad/issues/9080
2021-09-04 22:09:32 +01:00
jean-pierre charras
4ac2aa675a lib symbols: make fp filter tolerant to spaces in names.
For historical reasons they are stored in a string using spaces as separators.
So each fp filter is now escaped to remove spaces (replaced by {space})
Fixes #9009
https://gitlab.com/kicad/code/kicad/issues/9009
2021-08-23 18:01:31 +02:00
Jeff Young
6aaf4413b3 Fix kicad_string.h / string.cpp mismatch.
They don't define a KiCad string class, so the header file name was
somewhat misleading. But the fact that they didn't match definitely
made coding more difficult.
2021-07-29 16:03:25 +01:00