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
7dc08c87
Commit
7dc08c87
authored
Apr 07, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed switching back to selection tool using the right toolbar buttons in pcbnew (GAL).
parent
6fa2f060
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
edit.cpp
pcbnew/edit.cpp
+3
-2
No files found.
pcbnew/edit.cpp
View file @
7dc08c87
...
@@ -1374,7 +1374,7 @@ void PCB_EDIT_FRAME::OnSelectTool( wxCommandEvent& aEvent )
...
@@ -1374,7 +1374,7 @@ void PCB_EDIT_FRAME::OnSelectTool( wxCommandEvent& aEvent )
{
{
std
::
string
actionName
=
COMMON_ACTIONS
::
TranslateLegacyId
(
id
);
std
::
string
actionName
=
COMMON_ACTIONS
::
TranslateLegacyId
(
id
);
if
(
!
actionName
.
empty
()
)
if
(
!
actionName
.
empty
()
||
id
==
ID_NO_TOOL_SELECTED
)
{
{
const
int
MAX_TRIALS
=
10
;
const
int
MAX_TRIALS
=
10
;
int
trials
=
0
;
int
trials
=
0
;
...
@@ -1389,6 +1389,7 @@ void PCB_EDIT_FRAME::OnSelectTool( wxCommandEvent& aEvent )
...
@@ -1389,6 +1389,7 @@ void PCB_EDIT_FRAME::OnSelectTool( wxCommandEvent& aEvent )
m_toolManager
.
ProcessEvent
(
cancel
);
m_toolManager
.
ProcessEvent
(
cancel
);
}
}
if
(
!
actionName
.
empty
()
)
m_toolManager
.
RunAction
(
actionName
);
m_toolManager
.
RunAction
(
actionName
);
}
}
}
}
...
...
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