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
d84087c0
Commit
d84087c0
authored
Feb 01, 2010
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eeschema: minor bug fix
parent
a46cd46d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
dangling_ends.cpp
eeschema/dangling_ends.cpp
+6
-5
No files found.
eeschema/dangling_ends.cpp
View file @
d84087c0
...
@@ -148,8 +148,7 @@ void WinEDA_SchematicFrame::TestDanglingEnds( SCH_ITEM* DrawList, wxDC* DC )
...
@@ -148,8 +148,7 @@ void WinEDA_SchematicFrame::TestDanglingEnds( SCH_ITEM* DrawList, wxDC* DC )
* Test if point pos is on a pin end.
* Test if point pos is on a pin end.
*
*
* @param DrawList = List of SCH_ITEMs to check.
* @param DrawList = List of SCH_ITEMs to check.
*
* @return a LIB_PIN pointer to the located pin or NULL if no pin was found.
* @return LIB_PIN - Pointer to the located pin or NULL if no pin was found.
*/
*/
LIB_PIN
*
WinEDA_SchematicFrame
::
LocatePinEnd
(
SCH_ITEM
*
DrawList
,
LIB_PIN
*
WinEDA_SchematicFrame
::
LocatePinEnd
(
SCH_ITEM
*
DrawList
,
const
wxPoint
&
pos
)
const
wxPoint
&
pos
)
...
@@ -165,10 +164,12 @@ LIB_PIN* WinEDA_SchematicFrame::LocatePinEnd( SCH_ITEM* DrawList,
...
@@ -165,10 +164,12 @@ LIB_PIN* WinEDA_SchematicFrame::LocatePinEnd( SCH_ITEM* DrawList,
pinpos
=
Pin
->
m_Pos
;
pinpos
=
Pin
->
m_Pos
;
if
(
DrawLibItem
==
NULL
)
if
(
DrawLibItem
==
NULL
)
NEGATE
(
pinpos
.
y
);
NEGATE
(
pinpos
.
y
);
// In libraries Y axis is bottom to top
// and in schematic Y axis is top to bottom
else
else
// calculate the pin position in schematic
pinpos
=
TransformCoordinate
(
DrawLibItem
->
m_Transform
,
pinpos
);
pinpos
=
TransformCoordinate
(
DrawLibItem
->
m_Transform
,
pinpos
)
+
DrawLibItem
->
m_Pos
;
if
(
pos
==
pinpos
)
if
(
pos
==
pinpos
)
return
Pin
;
return
Pin
;
...
...
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