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
6cc3addc
Commit
6cc3addc
authored
Jul 24, 2014
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix overflow in track len calculations and display (Bug #1347878), in high-light tool.
parent
893618bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
class_netinfo_item.cpp
pcbnew/class_netinfo_item.cpp
+5
-5
No files found.
pcbnew/class_netinfo_item.cpp
View file @
6cc3addc
...
...
@@ -84,8 +84,8 @@ void NETINFO_ITEM::GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList )
wxString
txt
;
MODULE
*
module
;
D_PAD
*
pad
;
double
lengthnet
=
0
;
// This is the lenght of tracks on pcb
double
lengthPadToDie
=
0
;
// this is the lenght of internal ICs connections
double
lengthnet
=
0
.0
;
// This is the lenght of tracks on pcb
double
lengthPadToDie
=
0
.0
;
// this is the lenght of internal ICs connections
aList
.
push_back
(
MSG_PANEL_ITEM
(
_
(
"Net Name"
),
GetNetname
(),
RED
)
);
...
...
@@ -131,15 +131,15 @@ void NETINFO_ITEM::GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList )
aList
.
push_back
(
MSG_PANEL_ITEM
(
_
(
"Vias"
),
txt
,
BLUE
)
);
// Displays the full net length (tracks on pcb + internal ICs connections ):
txt
=
::
Coordinat
eToString
(
lengthnet
+
lengthPadToDie
);
txt
=
::
LengthDoubl
eToString
(
lengthnet
+
lengthPadToDie
);
aList
.
push_back
(
MSG_PANEL_ITEM
(
_
(
"Net Length:"
),
txt
,
RED
)
);
// Displays the net length of tracks only:
txt
=
::
Coordinat
eToString
(
lengthnet
);
txt
=
::
LengthDoubl
eToString
(
lengthnet
);
aList
.
push_back
(
MSG_PANEL_ITEM
(
_
(
"On Board"
),
txt
,
RED
)
);
// Displays the net length of internal ICs connections (wires inside ICs):
txt
=
::
Coordinat
eToString
(
lengthPadToDie
);
txt
=
::
LengthDoubl
eToString
(
lengthPadToDie
);
aList
.
push_back
(
MSG_PANEL_ITEM
(
_
(
"In Package"
),
txt
,
RED
)
);
}
...
...
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