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
106fa9bb
Commit
106fa9bb
authored
Feb 04, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit tool may still be activated if it was invoked with no selected items.
parent
347649e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
edit_tool.cpp
pcbnew/tools/edit_tool.cpp
+5
-1
No files found.
pcbnew/tools/edit_tool.cpp
View file @
106fa9bb
...
...
@@ -80,7 +80,11 @@ int EDIT_TOOL::Main( TOOL_EVENT& aEvent )
m_updateFlag
=
KIGFX
::
VIEW_ITEM
::
GEOMETRY
;
if
(
selection
.
Empty
()
)
return
0
;
// there are no items to operate on
{
setTransitions
();
// this is necessary, so later the tool may
// be activated upon reception of the activation event
return
0
;
// there are no items to operate on, so we can end now
}
VECTOR2D
dragPosition
;
// The last position of the cursor while dragging
m_dragging
=
false
;
...
...
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