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
c7996263
Commit
c7996263
authored
Dec 20, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ratsnest is updated, when there are tracks added using the P&S router.
parent
5fe20bbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
ratsnest_data.cpp
pcbnew/ratsnest_data.cpp
+1
-1
pns_router.cpp
pcbnew/router/pns_router.cpp
+4
-0
No files found.
pcbnew/ratsnest_data.cpp
View file @
c7996263
...
@@ -836,7 +836,7 @@ void RN_DATA::Recalculate( int aNet )
...
@@ -836,7 +836,7 @@ void RN_DATA::Recalculate( int aNet )
updateNet
(
i
);
updateNet
(
i
);
}
}
}
}
else
// Recompute only specific net
else
if
(
aNet
>
0
)
// Recompute only specific net
{
{
updateNet
(
aNet
);
updateNet
(
aNet
);
}
}
...
...
pcbnew/router/pns_router.cpp
View file @
c7996263
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
#include <class_board_item.h>
#include <class_board_item.h>
#include <class_pad.h>
#include <class_pad.h>
#include <class_track.h>
#include <class_track.h>
#include <ratsnest_data.h>
#include <layers_id_colors_and_visibility.h>
#include <layers_id_colors_and_visibility.h>
// an ugly singleton for drawing debug items within the router context.
// an ugly singleton for drawing debug items within the router context.
...
@@ -626,6 +627,7 @@ void PNS_ROUTER::commitRouting( PNS_NODE* aNode )
...
@@ -626,6 +627,7 @@ void PNS_ROUTER::commitRouting( PNS_NODE* aNode )
newBI
->
ClearFlags
();
newBI
->
ClearFlags
();
m_view
->
Add
(
newBI
);
m_view
->
Add
(
newBI
);
m_board
->
Add
(
newBI
);
m_board
->
Add
(
newBI
);
m_board
->
GetRatsnest
()
->
Update
(
static_cast
<
BOARD_CONNECTED_ITEM
*>
(
newBI
)
);
newBI
->
ViewUpdate
(
KIGFX
::
VIEW_ITEM
::
GEOMETRY
);
newBI
->
ViewUpdate
(
KIGFX
::
VIEW_ITEM
::
GEOMETRY
);
}
}
}
}
...
@@ -757,6 +759,8 @@ void PNS_ROUTER::StopRouting()
...
@@ -757,6 +759,8 @@ void PNS_ROUTER::StopRouting()
// highlightCurrent(false);
// highlightCurrent(false);
// Update the ratsnest
m_board
->
GetRatsnest
()
->
Recalculate
(
m_currentNet
);
EraseView
();
EraseView
();
m_state
=
IDLE
;
m_state
=
IDLE
;
...
...
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