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
e77af399
Commit
e77af399
authored
Aug 09, 2011
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved comments and formatting
parent
40664a55
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
22 deletions
+21
-22
class_board.cpp
pcbnew/class_board.cpp
+11
-12
class_track.cpp
pcbnew/class_track.cpp
+0
-6
class_zone.cpp
pcbnew/class_zone.cpp
+10
-4
No files found.
pcbnew/class_board.cpp
View file @
e77af399
...
...
@@ -594,11 +594,10 @@ void BOARD::Add( BOARD_ITEM* aBoardItem, int aControl )
case
TYPE_TRACK
:
case
TYPE_VIA
:
{
TRACK
*
insertAid
=
(
(
TRACK
*
)
aBoardItem
)
->
GetBestInsertPoint
(
this
);
TRACK
*
insertAid
;
insertAid
=
(
(
TRACK
*
)
aBoardItem
)
->
GetBestInsertPoint
(
this
);
m_Track
.
Insert
(
(
TRACK
*
)
aBoardItem
,
insertAid
);
}
break
;
break
;
case
TYPE_ZONE
:
if
(
aControl
&
ADD_APPEND
)
...
...
@@ -635,14 +634,14 @@ void BOARD::Add( BOARD_ITEM* aBoardItem, int aControl )
// other types may use linked list
default
:
{
wxString
msg
;
msg
.
Printf
(
wxT
(
"BOARD::Add() needs work: BOARD_ITEM type (%d) not handled"
),
aBoardItem
->
Type
()
);
wxFAIL_MSG
(
msg
);
}
break
;
{
wxString
msg
;
msg
.
Printf
(
wxT
(
"BOARD::Add() needs work: BOARD_ITEM type (%d) not handled"
),
aBoardItem
->
Type
()
);
wxFAIL_MSG
(
msg
);
}
break
;
}
}
...
...
pcbnew/class_track.cpp
View file @
e77af399
...
...
@@ -492,12 +492,6 @@ void SEGVIA::ReturnLayerPair( int* top_layer, int* bottom_layer ) const
}
/*
* Function GetBestInsertPoint
* Search the "best" insertion point within the track linked list
* the best point is the of the corresponding net code section
* return the item found in the linked list (or NULL if no track)
*/
TRACK
*
TRACK
::
GetBestInsertPoint
(
BOARD
*
aPcb
)
{
TRACK
*
track
;
...
...
pcbnew/class_zone.cpp
View file @
e77af399
...
...
@@ -943,13 +943,19 @@ bool ZONE_CONTAINER::HitTest( EDA_RECT& refArea )
int
ZONE_CONTAINER
::
GetClearance
(
BOARD_CONNECTED_ITEM
*
aItem
)
const
{
NETCLASS
*
myclass
=
GetNetClass
();
int
myClearance
=
m_ZoneClearance
;
#if 0 // maybe the netclass clearance should not come into play for a zone?
#if 0 // Maybe the netclass clearance should not come into play for a zone?
// At least the policy decision can be controlled by the zone
// itself, i.e. here. On reasons of insufficient documentation,
// the user will be less bewildered if we simply respect the
// "zone clearance" setting in the zone properties dialog. (At least
// until there is a UI boolean for this.)
if( myclass )
myClearance = max( myClearance, myclass->GetClearance() );
NETCLASS* myClass = GetNetClass();
if( myClass )
myClearance = std::max( myClearance, myClass->GetClearance() );
#endif
if
(
aItem
)
...
...
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