Jeff Young
76d463dcc8
Honour alternates when getting SCH_PIN description.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16407
(cherry picked from commit af158715e5
)
2023-12-29 14:05:44 +00:00
Jeff Young
2daa432261
Ignore reference and value when computing "allChecked".
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16408
(cherry picked from commit 9910c670d2
)
2023-12-29 14:04:30 +00:00
Jeff Young
d7b2c81db5
Check added fields only if all fields were checked before.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16408
(cherry picked from commit 7e72a53876
)
2023-12-29 14:04:15 +00:00
Jeff Young
b597a4559f
Update SCH_SHAPE::Plot() to handle all fill styles.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16429
(cherry picked from commit 1ca82035ae
)
2023-12-29 14:00:53 +00:00
Jon Evans
18e3227c9a
Allow no-connects on standalone hierarchical pins/ports
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16397
(cherry picked from commit dad842d3f0
)
2023-12-29 13:34:55 +00:00
Wayne Stambaugh
41b847b3c9
Prune orphaned schematic sheet instances.
...
Pasting from the clipboard when copying from another project can leave
sheet instance information that is not valid for the current project.
This change prunes all sheet instance information that is not relevant
to the current project. It also prunes invalid paths created by pasting
sheets from different paths in the same project.
(cherry picked from commit 482aff3f0b
)
2023-12-29 08:06:53 -05:00
Wayne Stambaugh
567c5bc8db
Tag release version 7.0.10.
2023-12-27 16:21:44 -05:00
Jeff Young
09bae9bb14
Fallback to normal undo when wire-drawing not in progress.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16216
(cherry picked from commit 035725cd5d
)
2023-12-12 17:15:05 +00:00
Wayne Stambaugh
6d17d7d7a1
Fix crash when duplicating and editing a hierarchical label.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16264
2023-12-11 10:57:19 -05:00
Wayne Stambaugh
98dc21360a
Fix crash on save after pasting symbols in schematic editor.
...
This was caused by pasting zero length instance paths which are not valid.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16300
(cherry picked from commit 484491aaea
)
2023-12-11 08:30:38 -05:00
jean-pierre charras
5ae1b271e7
Fix crash: Under some circumstances the command "Export symbols to (new) library"
...
produces a crash when the library links are updated, and a power symbol is not found
in any loaded library.
Add also an option to export all symbols or all not pwer symbols
From master branch
Fixes #16229
https://gitlab.com/kicad/code/kicad/-/issues/
2023-12-04 18:28:06 +01:00
Wayne Stambaugh
62297e63a2
Fix crash when saving pasted root sheet symbols.
...
The paste code creates invalid KIID_PATH objects with a zero length. All
paths must include the root KIID at a minimum. Code was added to prune
the invalid paths and some defensive code was adding to the formatter to
prevent the crash in case there are other paths where someone generates
a zero length path.
Pruning orphaned instance data does not work when loading schematics prior
to version 7 because the paths did not include the root sheet UUID. Once
the file is saved to V7 or later, the next load will prune any orphaned or
invalid instance data for the current project.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16245
(cherry picked from commit 764df1d107
)
2023-12-03 13:27:34 -05:00
Jeff Young
a46501b279
Attempt to fix build.
2023-12-02 19:19:02 +00:00
Jeff Young
bc1953dded
Collapse drawing tools to a single re-entrancy guard.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16112
(cherry picked from commit c518041f9b
)
2023-12-02 16:23:46 +00:00
Jeff Young
789a695737
Remove children from view_group when de-selecting.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16139
(cherry picked from commit 4a25ef164d
)
2023-12-02 16:21:50 +00:00
Wayne Stambaugh
9fdda223f5
Fix broken symbol reference designators on paste special.
...
It appears that in our zeal to prevent file changes when saving shared
schematics, we (I) clobbered saving relative symbol instance data paths
to the clipboard. This has be restored along with setting the correct
symbol unit for relative clipboard paths.
Fixed a serious issue with KIID_PATH::MakeRelativeTo() where the original
path was not restored when the incremental KIID object test fails. This
also included a minor optimization using the actual KIID object for
comparison instead of converting it to a string and then comparing the
string.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15981
(cherry picked from commit 6dc25f4775
)
2023-12-01 15:30:51 -05:00
Jon Evans
0751a3ae7f
Prevent some issues with recursion on repeat-last-item
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16168
(cherry picked from commit 90a61b8d36
)
2023-12-01 13:02:50 -05:00
Jon Evans
fe69da4cb8
Handle non-IOE exceptions in symbol loader
...
(cherry picked from commit 35edd84269
)
2023-11-30 22:26:14 +00:00
Jon Evans
27434e38f9
Database: handle more possible datatype exceptions
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16090
(cherry picked from commit 44374c661f
)
2023-11-30 22:26:02 +00:00
Seth Hillbrand
ef8b6bf9e1
Fix invalid string compare in IBIS parser
...
strcmp returns 0 if strings are the same but compareIbisWord returns
True (1).
Adds an IBIS simulation QA test case to catch this in the future
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16223
2023-11-30 09:15:01 -08:00
Wayne Stambaugh
59cc7b2d3e
Fix unconnected schematic net highlighting issue.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16218
(cherry picked from commit 23175c163f
)
2023-11-30 11:41:56 -05:00
Alex Shvartzkop
6245bbff50
IBIS: add stub for Model Spec; support empty strings in line with keywords.
...
(cherry picked from commit 08e6e0258f
)
2023-11-29 22:24:45 +03:00
Wayne Stambaugh
250720ca4a
Fix broken schematic net highlighting.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16131
(cherry picked from commit 70dad45996
)
2023-11-23 18:04:50 -05:00
Wayne Stambaugh
70d7bc2099
Add missing merge conflict fixes from cherry picking 402c139957
.
2023-11-18 11:29:13 -05:00
Wayne Stambaugh
402c139957
Change the bus selection behavior of the schematic net highlight tool.
...
[CHANGED] Bus highlight tool now supports toggling between highlighting
only the bus objects and highlighting the bus and all of the
bus member objects.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15388
(cherry picked from commit f6c99816b2
)
2023-11-17 07:56:38 -05:00
Alex Shvartzkop
3ac4fd59c5
Use v6 code to read arcs from legacy symbol libraries.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16048
(cherry picked from commit c048635484
)
2023-11-07 23:20:56 +03:00
Jeff Young
643894c882
Assign textBox to correct unit & conversion.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15994
(cherry picked from commit 972308b24b
)
2023-11-06 17:00:37 +00:00
Jeff Young
c7c28c0471
When presented with empty text we don't want to Normalize() the SIM_VALUE.
...
But we *do* need to update NUMERICAL_EVALUATOR::m_originalText by
calling NUMERICAL_EVALUATOR::Process().
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15871
(cherry picked from commit 6b29c346b9
)
2023-11-06 17:00:37 +00:00
jean-pierre charras
07736e59bd
Eeschema, plot schematic: fix incorrect rotation of symbol text in textboxes.
...
Happened with rotated symbols.
From master branch
Fixes #16027
https://gitlab.com/kicad/code/kicad/-/issues/16027
2023-11-05 16:31:38 +01:00
jean-pierre charras
2deee01592
Eeschema, print schematic: resolve text variables in symbol graphic text.
...
Variables in graphic text (body item) were resolved in plot, but not in print function.
Fixes #16026
https://gitlab.com/kicad/code/kicad/-/issues/16026
2023-11-05 16:31:37 +01:00
jean-pierre charras
890b09499e
legacy library import: fix compatibility with some old symbol libraries (*.lib files).
2023-11-05 16:31:36 +01:00
Jon Evans
01c5fab84b
Enforce symbol name not being empty
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15859
(cherry picked from commit e14e7e0bd9
)
2023-11-05 15:10:44 +00:00
Jon Evans
e9b7737692
Escape net names coming from aliases
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15212
(cherry picked from commit 24e613f60c
)
2023-11-05 15:10:17 +00:00
Seth Hillbrand
240d7921ba
Allow multiple strong drivers with same name
...
Multiple labels with the same name are allowed (and expected) so ensure
that we use a structure that allows duplicate names
(cherry picked from commit de0736863b
)
2023-10-31 11:53:56 -07:00
Seth Hillbrand
3ce4a5bf7f
Fix missing random sim command
2023-10-24 13:57:44 -07:00
Alex Shvartzkop
f62c3431ff
Semi-fix schematic text properties dialog on wx 3.2.3.
...
Based on d9b5257b9e
2023-10-24 23:30:31 +03:00
Seth Hillbrand
1380feef72
Compare bus local names
...
When running ERC, we want to check if bus members exist in the bus and
this should be done using m_local_name (i.e. the name it take from the
parent bus) not the resolved name as this will change depending on
connections
2023-10-23 12:54:31 -07:00
Alex Shvartzkop
14f12ccf51
Add ngspice lib paths for when running from build dir.
...
(cherry picked from commit 71fb1afe4c
)
2023-10-23 21:29:11 +03:00
Jeff Young
f89803eb64
Don't turn an empty string into a '0'.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15871
(cherry picked from commit 0b06a1376b
)
2023-10-14 15:33:00 +01:00
Alex Shvartzkop
0547c7ba91
Fix loading legacy (until 2009) schematic files.
...
(cherry picked from commit b87496b834
)
2023-10-14 15:45:20 +03:00
Alex Shvartzkop
8f4b809599
Fix the insufficient privileges message in symbol remap dialog.
...
(cherry picked from commit 7b94ecdc01
)
2023-10-14 15:44:52 +03:00
Marek Roszko
84df2c86ae
Fix ambiguous cast
2023-10-13 19:26:16 -04:00
Seth Hillbrand
9260f58803
Fix memory leak in connection graph
...
When generating virtual connections to represent bus aliases, we need to
store the pointers for future deletion otherwise we will leak the memory
2023-10-06 09:14:07 -07:00
Seth Hillbrand
1a5c515e45
Improve pin-pin iteration in ERC checks
...
Rather than generating expensive classes to store in a set to check for
duplicate checks, we avoid double-checking elements in the vector. For
large schematics this results in a substantial speed increase
2023-10-06 09:14:07 -07:00
Seth Hillbrand
75de21314c
Protect against subgraph loops
...
Optimize the subgraph processing to avoid repeated loops when multiple
items belong to the same subgraph.
2023-10-05 08:39:56 -07:00
Jeff Young
1f870bf76c
Handle justification when hit-testing fields.
...
This steals the algo used in SCH_PAINTER to get the right coords
for the text.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15722
(cherry picked from commit 6fbbf981f0
)
2023-10-04 18:51:33 +01:00
Jeff Young
d5cc334e20
Clear render caches before plotting.
...
Also fixes a bug where text variables in LIB_TEXT weren't getting
expanded when plotting.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15765
(cherry picked from commit 003acbd686
)
2023-10-04 18:49:56 +01:00
jean-pierre charras
838eadd47f
Eeschema: fix a crash when loading a schematic if a symbol in a sheet has
...
a lib_name containing {slash} instead of /
(related to commits #2f51d22b and b2bf28f5
)
From master branch.
Fixes #15791
https://gitlab.com/kicad/code/kicad/-/issues/15791
2023-10-01 10:08:33 +02:00
jean-pierre charras
afb43531e8
Eeschema: fix a crash when loading a schematic if a symbol in a sheet has
...
a lib_id containing {slash} instead of /
(related to commit #2f51d22b)
Fixes #15791
https://gitlab.com/kicad/code/kicad/-/issues/15791
2023-09-30 18:25:18 +02:00
Jeff Young
7e747085d3
Handle read-only libraries when saving symbol from canvas.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15519
(cherry picked from commit 1fd3f4e375
)
2023-09-30 13:36:13 +01:00