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
f6959c03
Commit
f6959c03
authored
Mar 18, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comments.
parent
40ee66f8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
view.cpp
common/view/view.cpp
+2
-1
selection_tool.h
pcbnew/tools/selection_tool.h
+5
-1
No files found.
common/view/view.cpp
View file @
f6959c03
...
...
@@ -114,7 +114,8 @@ void VIEW::Remove( VIEW_ITEM* aItem )
if
(
aItem
->
viewRequiredUpdate
()
!=
VIEW_ITEM
::
NONE
)
// prevent from updating a removed item
{
std
::
vector
<
VIEW_ITEM
*>::
iterator
item
=
std
::
find
(
m_needsUpdate
.
begin
(),
m_needsUpdate
.
end
(),
aItem
);
std
::
vector
<
VIEW_ITEM
*>::
iterator
item
=
std
::
find
(
m_needsUpdate
.
begin
(),
m_needsUpdate
.
end
(),
aItem
);
if
(
item
!=
m_needsUpdate
.
end
()
)
m_needsUpdate
.
erase
(
item
);
...
...
pcbnew/tools/selection_tool.h
View file @
f6959c03
...
...
@@ -114,9 +114,13 @@ public:
*/
void
AddMenuItem
(
const
TOOL_ACTION
&
aAction
);
//
TODO comments
//
/> Event sent after an item is selected.
const
TOOL_EVENT
SelectedEvent
;
///> Event sent after an item is deselected.
const
TOOL_EVENT
DeselectedEvent
;
///> Event sent after selection is cleared.
const
TOOL_EVENT
ClearedEvent
;
private
:
...
...
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