Jeff Young
81b523f9a4
Make sure the board itself is in the item map.
Also makes closing the DRC dialog a bit more foolproof.
Fixes https://gitlab.com/kicad/code/kicad/issues/5665
5 years ago
Dominik Wernberger
6c164310ec
Delete nodes in vector before clearing it
5 years ago
Jon Evans
a52e3fc87a
Fix a segfault if screen changes from under the RC_TREE_MODEL
5 years ago
Jeff Young
93ef18d775
Fix typo where two footprint warning messages were transposed.
Fixes https://gitlab.com/kicad/code/kicad/issues/5303
5 years ago
Tomasz Wlostowski
d937fadd6f
Migrate RC_ITEM to use shared_ptr
5 years ago
Jeff Young
f67ba62c11
Don't stop when current item is reached: there might be more.
In particular, the two sub-items also count as "current" and need
to be deleted.
Fixes https://gitlab.com/kicad/code/kicad/issues/5057
5 years ago
Jeff Young
9c9fdb2569
More performant (and more correct) deletion of DRC markers.
Fixes https://gitlab.com/kicad/code/kicad/issues/5057
5 years ago
Jeff Young
c56599ab07
Allow ERC/DRC markers to be deleted without deleting exclusions.
Fixes https://gitlab.com/kicad/code/kicad/issues/4953
5 years ago
Jeff Young
c8170d9430
Restore selection after rebuilding DRC/ERC tree.
Fixes https://gitlab.com/kicad/code/kicad/issues/5042
5 years ago
Jon Evans
12b4a55ae8
Port Eeschema to new project settings
DRC/ERC error serialization changed to use explicit tokens
Old stored severities and ignored errors are discarded
6 years ago
Jeff Young
a7703d1207
Cleanup Graphics to parallel Cleanup Tracks & Vias.
This also allows for easier migration to DRAWSEGMENT::S_RECTs by
auto-converting 4 rectilinear lines to a rectangle.
5 years ago
jean-pierre charras
59523efc1a
Eeschema: fix a crash after reopening the ERC dialog, after changes in schematic.
When the ERC is run and a component has a ERC error linked to it, if it is deleted,
when reopening the ERC dialog, the dialog crashed due to a not found item
(null pointer use)
6 years ago
Jeff Young
4a60b8a776
Improve DRC error reporting and fix some bugs.
6 years ago
Jeff Young
32db9eb0f1
Add some distances to a few DRC errors.
6 years ago
Jeff Young
1535c83b88
Lay some groundwork for adding distances to DRC errors.
modified: eeschema/lib_rectangle.cpp
6 years ago
jean-pierre charras
aebfbda183
DRC dialog: fix a crash when clicking on a item in Footprint Warning panel:
if the warning is a missing footprint, obviously there is no marker associated.
It creates a crash due to a null pointer.
Fixes #4114
https://gitlab.com/kicad/code/kicad/issues/4114
6 years ago
Jeff Young
cee973dc04
Move ERC error reporting over to the new framework.
Fixes https://gitlab.com/kicad/code/kicad/issues/1989
6 years ago
Seth Hillbrand
61704cb508
Initialize missing variable
6 years ago
jean-pierre charras
fbd01f2f7d
DRC_TREE_MODEL: Fix incorrect display of DRC errors on linux+wxGTK 3.0
Fixes #4038
https://gitlab.com/kicad/code/kicad/issues/4038
6 years ago
Jeff Young
1e4ae5d526
Bug fix for DRC tree view on MSW.
6 years ago
Jeff Young
44b8bb8f60
Fix a bug when deleting DRC markers from their child items.
6 years ago
Jeff Young
d20f36511f
Fix issue with severities not get initialised in DRC_TREE_MODELs.
6 years ago
jean-pierre charras
b7cd0c54c2
Fix compil issues, especially on Windows:
Replace SEVERITY_ERROR by RPT_SEVERITY_ERROR to avoid collision with a system definition.
Replace other SEVERITY_XXX by RPT_SEVERITY_XX for consistency.
Fix compil warnings and some other compil issues.
6 years ago
Jeff Young
85c2e0d23a
Add user-defined severities, exclusions and colors to DRC markers.
Exclusions are currently persisted in the project file.
Fixes https://gitlab.com/kicad/code/kicad/issues/1989
6 years ago
Jeff Young
3860ab9f0c
Fix issue returning pointers to items inside std::vector.
(When the vector is re-allocated your pointers become bogus.)
6 years ago