Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
b0a2d7a4
Commit
b0a2d7a4
authored
Feb 26, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed seg fault in DRC just after a .ses import
parent
64f501ba
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
3 deletions
+16
-3
drc.cpp
pcbnew/drc.cpp
+5
-1
makefile.include
pcbnew/makefile.include
+1
-1
ratsnest.cpp
pcbnew/ratsnest.cpp
+1
-1
specctra_import.cpp
pcbnew/specctra_import.cpp
+9
-0
No files found.
pcbnew/drc.cpp
View file @
b0a2d7a4
...
@@ -187,6 +187,10 @@ int DRC::Drc( ZONE_CONTAINER * aArea, int CornerIndex )
...
@@ -187,6 +187,10 @@ int DRC::Drc( ZONE_CONTAINER * aArea, int CornerIndex )
void
DRC
::
RunTests
()
void
DRC
::
RunTests
()
{
{
// Ensure ratsnest is up to date:
if
(
(
m_pcb
->
m_Status_Pcb
&
LISTE_CHEVELU_OK
)
==
0
)
m_mainWindow
->
Compile_Ratsnest
(
NULL
,
true
);
// someone should have cleared the two lists before calling this.
// someone should have cleared the two lists before calling this.
// test pad to pad clearances, nothing to do with tracks, vias or zones.
// test pad to pad clearances, nothing to do with tracks, vias or zones.
...
@@ -197,7 +201,7 @@ void DRC::RunTests()
...
@@ -197,7 +201,7 @@ void DRC::RunTests()
testTracks
();
testTracks
();
// Before testing segments and unconnected, refill all zones:
// Before testing segments and unconnected, refill all zones:
// this is a good caution,
and mandatory if using filling zones by solid polygons
// this is a good caution,
because filled areas can be outdated.
m_mainWindow
->
Fill_All_Zones
(
false
);
m_mainWindow
->
Fill_All_Zones
(
false
);
// test zone clearances to other zones, pads, tracks, and vias
// test zone clearances to other zones, pads, tracks, and vias
...
...
pcbnew/makefile.include
View file @
b0a2d7a4
...
@@ -256,7 +256,7 @@ librairi.o: librairi.cpp
...
@@ -256,7 +256,7 @@ librairi.o: librairi.cpp
edgemod.o
:
edgemod.cpp
edgemod.o
:
edgemod.cpp
muonde.o
:
muonde.cpp drag.h
gen_self.h
muonde.o
:
muonde.cpp drag.h
autorout.o
:
autorout.cpp cell.h autorout.h
autorout.o
:
autorout.cpp cell.h autorout.h
...
...
pcbnew/ratsnest.cpp
View file @
b0a2d7a4
...
@@ -104,7 +104,7 @@ void WinEDA_BasePcbFrame::Compile_Ratsnest( wxDC* DC, bool display_status_pcb )
...
@@ -104,7 +104,7 @@ void WinEDA_BasePcbFrame::Compile_Ratsnest( wxDC* DC, bool display_status_pcb )
* Must be called after a board change (changes for
* Must be called after a board change (changes for
* pads, footprints or a read netlist ).
* pads, footprints or a read netlist ).
*
*
* if display_status_pcb
!= 0
: Display the computation results
* if display_status_pcb
== true
: Display the computation results
*/
*/
{
{
wxString
msg
;
wxString
msg
;
...
...
pcbnew/specctra_import.cpp
View file @
b0a2d7a4
...
@@ -116,6 +116,15 @@ void WinEDA_PcbFrame::ImportSpecctraSession( wxCommandEvent& event )
...
@@ -116,6 +116,15 @@ void WinEDA_PcbFrame::ImportSpecctraSession( wxCommandEvent& event )
GetScreen
()
->
SetModify
();
GetScreen
()
->
SetModify
();
GetBoard
()
->
m_Status_Pcb
=
0
;
GetBoard
()
->
m_Status_Pcb
=
0
;
/* At this point we should call Compile_Ratsnest()
* but this could be time consumming.
* So if incorrect number of Connecred and No connected pads is accepted
* until Compile_Ratsnest() is called (when track tool selected for instance)
* leave the next line commented
* Otherwise uncomment this line
*/
//Compile_Ratsnest( NULL, true );
Affiche_Message
(
wxString
(
_
(
"Session file imported and merged OK."
))
);
Affiche_Message
(
wxString
(
_
(
"Session file imported and merged OK."
))
);
DrawPanel
->
Refresh
(
TRUE
);
DrawPanel
->
Refresh
(
TRUE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment