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
7fd9fc49
Commit
7fd9fc49
authored
May 13, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ratsnest lines are highlighted together with all items in the same net.
parent
8bb5eaa4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ratsnest_viewitem.cpp
pcbnew/ratsnest_viewitem.cpp
+3
-1
No files found.
pcbnew/ratsnest_viewitem.cpp
View file @
7fd9fc49
...
...
@@ -60,6 +60,7 @@ void RATSNEST_VIEWITEM::ViewDraw( int aLayer, GAL* aGal ) const
aGal
->
SetLineWidth
(
1.0
);
RENDER_SETTINGS
*
rs
=
m_view
->
GetPainter
()
->
GetSettings
();
COLOR4D
color
=
rs
->
GetColor
(
NULL
,
ITEM_GAL_LAYER
(
RATSNEST_VISIBLE
)
);
int
highlightedNet
=
rs
->
GetHighlightNetCode
();
for
(
int
i
=
1
;
i
<
m_data
->
GetNetCount
();
++
i
)
{
...
...
@@ -89,7 +90,8 @@ void RATSNEST_VIEWITEM::ViewDraw( int aLayer, GAL* aGal ) const
}
// Draw the "static" ratsnest
aGal
->
SetStrokeColor
(
color
);
// using the default ratsnest color
if
(
i
!=
highlightedNet
)
aGal
->
SetStrokeColor
(
color
);
// using the default ratsnest color for not highlighted
const
std
::
vector
<
RN_EDGE_PTR
>*
edges
=
net
.
GetUnconnected
();
if
(
edges
==
NULL
)
...
...
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