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
cd664e8b
Commit
cd664e8b
authored
Feb 22, 2013
by
Anton Blanchard
Committed by
Wayne Stambaugh
Feb 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes segfault in Pcbnew module editor when clicking delete tool where there is no object.
parent
348b7de4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modedit_onclick.cpp
pcbnew/modedit_onclick.cpp
+2
-1
No files found.
pcbnew/modedit_onclick.cpp
View file @
cd664e8b
...
...
@@ -120,9 +120,10 @@ void FOOTPRINT_EDIT_FRAME::OnLeftClick( wxDC* DC, const wxPoint& MousePos )
case
ID_MODEDIT_DELETE_TOOL
:
if
(
!
no_item_edited
)
// Item in edit, cannot delete it
break
;
item
=
ModeditLocateAndDisplay
();
if
(
item
->
Type
()
!=
PCB_MODULE_T
)
// Cannot delete the module itself
if
(
item
&&
item
->
Type
()
!=
PCB_MODULE_T
)
// Cannot delete the module itself
{
SaveCopyInUndoList
(
GetBoard
()
->
m_Modules
,
UR_MODEDIT
);
RemoveStruct
(
item
);
...
...
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