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
0163b589
Commit
0163b589
authored
Jul 09, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workarounded restoring focus to GAL canvas after layer switching.
parent
b1837615
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
pcbframe.cpp
pcbnew/pcbframe.cpp
+1
-0
router_tool.cpp
pcbnew/router/router_tool.cpp
+0
-2
pcbnew_control.cpp
pcbnew/tools/pcbnew_control.cpp
+1
-3
No files found.
pcbnew/pcbframe.cpp
View file @
0163b589
...
...
@@ -830,6 +830,7 @@ void PCB_EDIT_FRAME::SetActiveLayer( LAYER_ID aLayer )
if
(
IsGalCanvasActive
()
)
{
m_toolManager
->
RunAction
(
COMMON_ACTIONS
::
layerChanged
);
// notify other tools
GetGalCanvas
()
->
SetFocus
();
// otherwise hotkeys are stuck somewhere
GetGalCanvas
()
->
Refresh
();
}
}
...
...
pcbnew/router/router_tool.cpp
View file @
0163b589
...
...
@@ -532,9 +532,7 @@ void ROUTER_TOOL::performRouting()
}
m_router
->
SwitchLayer
(
m_startLayer
);
frame
->
SetActiveLayer
(
ToLAYER_ID
(
m_startLayer
)
);
frame
->
GetGalCanvas
()
->
SetFocus
();
if
(
m_startItem
&&
m_startItem
->
Net
()
>=
0
)
highlightNet
(
true
,
m_startItem
->
Net
()
);
...
...
pcbnew/tools/pcbnew_control.cpp
View file @
0163b589
...
...
@@ -298,7 +298,6 @@ int PCBNEW_CONTROL::LayerSwitch( TOOL_EVENT& aEvent )
else
if
(
aEvent
.
IsAction
(
&
COMMON_ACTIONS
::
layerBottom
)
)
m_frame
->
SwitchLayer
(
NULL
,
B_Cu
);
m_frame
->
GetGalCanvas
()
->
SetFocus
();
setTransitions
();
return
0
;
...
...
@@ -325,8 +324,8 @@ int PCBNEW_CONTROL::LayerNext( TOOL_EVENT& aEvent )
else
++
layer
;
assert
(
IsCopperLayer
(
layer
)
);
editFrame
->
SwitchLayer
(
NULL
,
ToLAYER_ID
(
layer
)
);
editFrame
->
GetGalCanvas
()
->
SetFocus
();
setTransitions
();
return
0
;
...
...
@@ -355,7 +354,6 @@ int PCBNEW_CONTROL::LayerPrev( TOOL_EVENT& aEvent )
assert
(
IsCopperLayer
(
layer
)
);
editFrame
->
SwitchLayer
(
NULL
,
ToLAYER_ID
(
layer
)
);
editFrame
->
GetGalCanvas
()
->
SetFocus
();
setTransitions
();
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