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
ecb3aebc
Commit
ecb3aebc
authored
Mar 10, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug caused by removed VIEW_ITEMs that were marked for updating.
parent
c4dbdbf9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
view.cpp
common/view/view.cpp
+8
-0
No files found.
common/view/view.cpp
View file @
ecb3aebc
...
@@ -114,6 +114,14 @@ void VIEW::Remove( VIEW_ITEM* aItem )
...
@@ -114,6 +114,14 @@ void VIEW::Remove( VIEW_ITEM* aItem )
if
(
m_dynamic
)
if
(
m_dynamic
)
aItem
->
m_view
=
NULL
;
aItem
->
m_view
=
NULL
;
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
);
if
(
item
!=
m_needsUpdate
.
end
()
)
m_needsUpdate
.
erase
(
item
);
}
int
layers
[
VIEW
::
VIEW_MAX_LAYERS
],
layers_count
;
int
layers
[
VIEW
::
VIEW_MAX_LAYERS
],
layers_count
;
aItem
->
getLayers
(
layers
,
layers_count
);
aItem
->
getLayers
(
layers
,
layers_count
);
...
...
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