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
eb3976df
Commit
eb3976df
authored
Nov 02, 2007
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed track delete bug
parent
f72c53e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
hotkeys.cpp
pcbnew/hotkeys.cpp
+11
-3
No files found.
pcbnew/hotkeys.cpp
View file @
eb3976df
...
@@ -314,13 +314,19 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey,
...
@@ -314,13 +314,19 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey,
// don't let backspace delete modules!!
// don't let backspace delete modules!!
if
(
DrawStruct
&&
(
DrawStruct
->
Type
()
==
TYPETRACK
if
(
DrawStruct
&&
(
DrawStruct
->
Type
()
==
TYPETRACK
||
DrawStruct
->
Type
()
==
TYPEVIA
)
)
||
DrawStruct
->
Type
()
==
TYPEVIA
)
)
{
Delete_Segment
(
DC
,
(
TRACK
*
)
DrawStruct
);
Delete_Segment
(
DC
,
(
TRACK
*
)
DrawStruct
);
SetCurItem
(
NULL
);
}
GetScreen
()
->
SetModify
();
GetScreen
()
->
SetModify
();
}
}
else
if
(
GetCurItem
()
->
Type
()
==
TYPETRACK
)
else
if
(
GetCurItem
()
->
Type
()
==
TYPETRACK
)
{
{
// then an element is being edited - remove the last segment.
// then an element is being edited - remove the last segment.
SetCurItem
(
Delete_Segment
(
DC
,
(
TRACK
*
)
GetCurItem
()
)
);
// simple lines for debugger:
TRACK
*
track
=
(
TRACK
*
)
GetCurItem
()
;
track
=
Delete_Segment
(
DC
,
track
);
SetCurItem
(
track
);
GetScreen
()
->
SetModify
();
GetScreen
()
->
SetModify
();
}
}
}
}
...
@@ -581,8 +587,10 @@ bool WinEDA_PcbFrame::OnHotkeyDeleteItem( wxDC* DC, EDA_BaseStruct* DrawStruct )
...
@@ -581,8 +587,10 @@ bool WinEDA_PcbFrame::OnHotkeyDeleteItem( wxDC* DC, EDA_BaseStruct* DrawStruct )
}
}
else
if
(
GetCurItem
()
->
Type
()
==
TYPETRACK
)
else
if
(
GetCurItem
()
->
Type
()
==
TYPETRACK
)
{
{
SetCurItem
(
// simple lines for debugger:
Delete_Segment
(
DC
,
(
TRACK
*
)
GetCurItem
()
)
);
TRACK
*
track
=
(
TRACK
*
)
GetCurItem
();
track
=
Delete_Segment
(
DC
,
track
);
SetCurItem
(
track
);
GetScreen
()
->
SetModify
();
GetScreen
()
->
SetModify
();
return
TRUE
;
return
TRUE
;
}
}
...
...
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