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
1be0b66d
Commit
1be0b66d
authored
Mar 12, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: fix a bug in autoplac.cpp
parent
c8ed3280
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
autoplac.cpp
pcbnew/autorouter/autoplac.cpp
+4
-4
No files found.
pcbnew/autorouter/autoplac.cpp
View file @
1be0b66d
...
@@ -573,7 +573,7 @@ void PCB_EDIT_FRAME::GenModuleOnBoard( MODULE* Module )
...
@@ -573,7 +573,7 @@ void PCB_EDIT_FRAME::GenModuleOnBoard( MODULE* Module )
}
}
/* Trace clearance. */
/* Trace clearance. */
marge
=
(
RoutingMatrix
.
m_GridRouting
*
Module
->
m_PadNum
)
/
GAIN
;
marge
=
(
RoutingMatrix
.
m_GridRouting
*
Module
->
GetPadCount
()
)
/
GAIN
;
CreateKeepOutRectangle
(
ox
,
oy
,
fx
,
fy
,
marge
,
KEEP_OUT_MARGIN
,
layerMask
);
CreateKeepOutRectangle
(
ox
,
oy
,
fx
,
fy
,
marge
,
KEEP_OUT_MARGIN
,
layerMask
);
}
}
...
@@ -883,7 +883,7 @@ int TstModuleOnBoard( BOARD* Pcb, MODULE* Module, bool TstOtherSide )
...
@@ -883,7 +883,7 @@ int TstModuleOnBoard( BOARD* Pcb, MODULE* Module, bool TstOtherSide )
return
error
;
return
error
;
}
}
marge
=
(
RoutingMatrix
.
m_GridRouting
*
Module
->
m_PadNum
)
/
GAIN
;
marge
=
(
RoutingMatrix
.
m_GridRouting
*
Module
->
GetPadCount
()
)
/
GAIN
;
return
CalculateKeepOutArea
(
ox
-
marge
,
oy
-
marge
,
fx
+
marge
,
fy
+
marge
,
side
);
return
CalculateKeepOutArea
(
ox
-
marge
,
oy
-
marge
,
fx
+
marge
,
fy
+
marge
,
side
);
}
}
...
@@ -1063,8 +1063,8 @@ static bool Tri_PlaceModules( MODULE* ref, MODULE* compare )
...
@@ -1063,8 +1063,8 @@ static bool Tri_PlaceModules( MODULE* ref, MODULE* compare )
{
{
double
ff1
,
ff2
;
double
ff1
,
ff2
;
ff1
=
ref
->
m_Surface
*
ref
->
m_PadNum
;
ff1
=
ref
->
m_Surface
*
ref
->
GetPadCount
()
;
ff2
=
compare
->
m_Surface
*
compare
->
m_PadNum
;
ff2
=
compare
->
m_Surface
*
compare
->
GetPadCount
()
;
return
ff2
<
ff1
;
return
ff2
<
ff1
;
}
}
...
...
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