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
ab436f0a
Commit
ab436f0a
authored
Oct 19, 2007
by
CHARRAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove a change in connect.cpp(was made for debug)
parent
cfc68722
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
connect.cpp
pcbnew/connect.cpp
+2
-7
locate.cpp
pcbnew/locate.cpp
+5
-6
No files found.
pcbnew/connect.cpp
View file @
ab436f0a
...
...
@@ -361,8 +361,6 @@ void WinEDA_BasePcbFrame::test_1_net_connexion( wxDC* DC, int net_code )
}
bool
zflg
;
// DEBUG, must be removed
/***************************************************************************/
static
void
calcule_connexite_1_net
(
TRACK
*
pt_start_conn
,
TRACK
*
pt_end_conn
)
/***************************************************************************/
...
...
@@ -421,21 +419,18 @@ static void calcule_connexite_1_net( TRACK* pt_start_conn, TRACK* pt_end_conn )
}
}
zflg
=
false
;
if
(
Track
->
start
==
NULL
)
// end track not already connected, search a connection
{
Track
->
start
=
Locate_Piste_Connectee
(
Track
,
pt_start_conn
/*Track*/
,
pt_end_conn
,
START
);
Track
->
start
=
Locate_Piste_Connectee
(
Track
,
Track
,
pt_end_conn
,
START
);
}
if
(
Track
->
end
==
NULL
)
// end track not already connected, search a connection
{
Track
->
end
=
Locate_Piste_Connectee
(
Track
,
pt_start_conn
/*Track*/
,
pt_end_conn
,
END
);
Track
->
end
=
Locate_Piste_Connectee
(
Track
,
Track
,
pt_end_conn
,
END
);
}
if
(
Track
==
pt_end_conn
)
break
;
}
zflg
=
false
;
/* Generation des sous equipots du net */
propage_equipot
(
pt_start_conn
,
pt_end_conn
);
...
...
pcbnew/locate.cpp
View file @
ab436f0a
...
...
@@ -669,21 +669,20 @@ inline bool IsPointsAreNear(wxPoint & p1, wxPoint & p2, int max_dist)
/******************************************************************/
/*
return true if the dist between p1 and p2 < max_dist
Currently in test (currently rasnest algos work only if p1 == p2
Currently in test (currently rasnest algos work only if p1 == p2
)
*/
{
extern
bool
zflg
;
if
(
zflg
==
true
)
{
#if 0 // Do not change it: does not work
{
int dist;
dist = abs(p1.x - p2.x) + abs (p1.y - p2.y);
dist *= 7;
dist /= 10;
if ( dist < max_dist ) return true;
}
else
#
else
if
(
p1
==
p2
)
return
true
;
//
#endif
#endif
return
false
;
}
...
...
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