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
24ba75ba
Commit
24ba75ba
authored
Jan 31, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor change to clearing selection handling.
parent
630a3fb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
selection_tool.cpp
pcbnew/tools/selection_tool.cpp
+6
-3
No files found.
pcbnew/tools/selection_tool.cpp
View file @
24ba75ba
...
@@ -94,8 +94,8 @@ int SELECTION_TOOL::Main( TOOL_EVENT& aEvent )
...
@@ -94,8 +94,8 @@ int SELECTION_TOOL::Main( TOOL_EVENT& aEvent )
if
(
evt
->
IsCancel
()
)
if
(
evt
->
IsCancel
()
)
{
{
if
(
!
m_selection
.
Empty
()
)
// Cancel event deselects items...
// Cancel event deselects items...
ClearSelection
();
ClearSelection
();
// This tool never exits
// This tool never exits
}
}
...
@@ -109,7 +109,7 @@ int SELECTION_TOOL::Main( TOOL_EVENT& aEvent )
...
@@ -109,7 +109,7 @@ int SELECTION_TOOL::Main( TOOL_EVENT& aEvent )
// single click? Select single object
// single click? Select single object
else
if
(
evt
->
IsClick
(
BUT_LEFT
)
)
else
if
(
evt
->
IsClick
(
BUT_LEFT
)
)
{
{
if
(
!
m_additive
&&
m_selection
.
Size
()
>
1
)
if
(
!
m_additive
)
ClearSelection
();
ClearSelection
();
selectSingle
(
evt
->
Position
()
);
selectSingle
(
evt
->
Position
()
);
...
@@ -159,6 +159,9 @@ int SELECTION_TOOL::Main( TOOL_EVENT& aEvent )
...
@@ -159,6 +159,9 @@ int SELECTION_TOOL::Main( TOOL_EVENT& aEvent )
void
SELECTION_TOOL
::
ClearSelection
()
void
SELECTION_TOOL
::
ClearSelection
()
{
{
if
(
m_selection
.
Empty
()
)
return
;
KIGFX
::
VIEW_GROUP
::
const_iter
it
,
it_end
;
KIGFX
::
VIEW_GROUP
::
const_iter
it
,
it_end
;
// Restore the initial properties
// Restore the initial properties
...
...
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