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
2ce4f404
Commit
2ce4f404
authored
Feb 13, 2011
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: add missing call to SetMouseCapture( NULL, NULL ) in abort functions.
parent
c1347bbe
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
0 deletions
+12
-0
edit_pcb_text.cpp
pcbnew/edit_pcb_text.cpp
+2
-0
edtxtmod.cpp
pcbnew/edtxtmod.cpp
+2
-0
mirepcb.cpp
pcbnew/mirepcb.cpp
+2
-0
modules.cpp
pcbnew/modules.cpp
+1
-0
move-drag_pads.cpp
pcbnew/move-drag_pads.cpp
+2
-0
move_or_drag_track.cpp
pcbnew/move_or_drag_track.cpp
+1
-0
zones_by_polygon.cpp
pcbnew/zones_by_polygon.cpp
+2
-0
No files found.
pcbnew/edit_pcb_text.cpp
View file @
2ce4f404
...
...
@@ -35,6 +35,8 @@ void Abort_Edit_Pcb_Text( EDA_DRAW_PANEL* Panel, wxDC* DC )
TEXTE_PCB
*
TextePcb
=
(
TEXTE_PCB
*
)
Panel
->
GetScreen
()
->
GetCurItem
();
(
(
WinEDA_PcbFrame
*
)
Panel
->
GetParent
()
)
->
SetCurItem
(
NULL
);
Panel
->
SetMouseCapture
(
NULL
,
NULL
);
if
(
TextePcb
==
NULL
)
// Should not occur
return
;
...
...
pcbnew/edtxtmod.cpp
View file @
2ce4f404
...
...
@@ -130,6 +130,8 @@ static void AbortMoveTextModule( EDA_DRAW_PANEL* Panel, wxDC* DC )
TEXTE_MODULE
*
Text
=
(
TEXTE_MODULE
*
)
screen
->
GetCurItem
();
MODULE
*
Module
;
Panel
->
SetMouseCapture
(
NULL
,
NULL
);
if
(
Text
==
NULL
)
return
;
...
...
pcbnew/mirepcb.cpp
View file @
2ce4f404
...
...
@@ -177,6 +177,8 @@ static void AbortMoveAndEditTarget( EDA_DRAW_PANEL* Panel, wxDC* DC )
(
(
WinEDA_PcbFrame
*
)
Panel
->
GetParent
()
)
->
SetCurItem
(
NULL
);
Panel
->
SetMouseCapture
(
NULL
,
NULL
);
if
(
MirePcb
==
NULL
)
return
;
...
...
pcbnew/modules.cpp
View file @
2ce4f404
...
...
@@ -121,6 +121,7 @@ void Abort_MoveOrCopyModule( EDA_DRAW_PANEL* Panel, wxDC* DC )
module
=
(
MODULE
*
)
pcbframe
->
GetScreen
()
->
GetCurItem
();
pcbframe
->
GetBoard
()
->
m_Status_Pcb
&=
~
RATSNEST_ITEM_LOCAL_OK
;
Panel
->
SetMouseCapture
(
NULL
,
NULL
);
if
(
module
)
{
...
...
pcbnew/move-drag_pads.cpp
View file @
2ce4f404
...
...
@@ -26,6 +26,8 @@ static void Abort_Move_Pad( EDA_DRAW_PANEL* Panel, wxDC* DC )
{
D_PAD
*
pad
=
s_CurrentSelectedPad
;
Panel
->
SetMouseCapture
(
NULL
,
NULL
);
if
(
pad
==
NULL
)
return
;
...
...
pcbnew/move_or_drag_track.cpp
View file @
2ce4f404
...
...
@@ -129,6 +129,7 @@ static void Abort_MoveTrack( EDA_DRAW_PANEL* Panel, wxDC* DC )
Panel
,
DC
,
g_HighLight_NetCode
);
EraseDragList
();
Panel
->
SetMouseCapture
(
NULL
,
NULL
);
}
...
...
pcbnew/zones_by_polygon.cpp
View file @
2ce4f404
...
...
@@ -155,6 +155,7 @@ static void Abort_Zone_Create_Outline( EDA_DRAW_PANEL* Panel, wxDC* DC )
pcbframe
->
SetCurItem
(
NULL
);
s_AddCutoutToCurrentZone
=
false
;
s_CurrentZone
=
NULL
;
Panel
->
SetMouseCapture
(
NULL
,
NULL
);
}
...
...
@@ -413,6 +414,7 @@ void Abort_Zone_Move_Corner_Or_Outlines( EDA_DRAW_PANEL* Panel, wxDC* DC )
}
}
Panel
->
SetMouseCapture
(
NULL
,
NULL
);
_AuxiliaryList
.
ClearListAndDeleteItems
();
s_PickedList
.
ClearListAndDeleteItems
();
Panel
->
Refresh
();
...
...
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