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
b4e0a5cb
Commit
b4e0a5cb
authored
Jun 23, 2014
by
Kirill Mavreshko
Committed by
Maciej Suminski
Jun 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes bug #1332438: PNS router crashes when you another track while routing in "shove" mode
parent
4cd4990b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
pns_joint.h
pcbnew/router/pns_joint.h
+1
-1
pns_node.cpp
pcbnew/router/pns_node.cpp
+8
-1
No files found.
pcbnew/router/pns_joint.h
View file @
b4e0a5cb
...
...
@@ -112,7 +112,7 @@ public:
LINKED_ITEMS
::
iterator
f
=
std
::
find
(
m_linkedItems
.
begin
(),
m_linkedItems
.
end
(),
aItem
);
if
(
f
!=
m_linkedItems
.
end
()
)
m_linkedItems
.
erase
(
f
);
f
=
m_linkedItems
.
erase
(
f
);
return
m_linkedItems
.
size
()
==
0
;
}
...
...
pcbnew/router/pns_node.cpp
View file @
b4e0a5cb
...
...
@@ -1216,14 +1216,21 @@ int PNS_NODE::FindByMarker( int aMarker, PNS_ITEMSET& aItems )
int
PNS_NODE
::
RemoveByMarker
(
int
aMarker
)
{
std
::
list
<
PNS_ITEM
*>
garbage
;
for
(
PNS_INDEX
::
ITEM_SET
::
iterator
i
=
m_index
->
begin
();
i
!=
m_index
->
end
();
++
i
)
{
if
(
(
*
i
)
->
Marker
()
&
aMarker
)
{
Remove
(
*
i
);
garbage
.
push_back
(
*
i
);
}
}
for
(
std
::
list
<
PNS_ITEM
*>::
const_iterator
i
=
garbage
.
begin
(),
end
=
garbage
.
end
();
i
!=
end
;
++
i
)
{
Remove
(
*
i
);
}
return
0
;
}
...
...
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