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
d281d86e
Commit
d281d86e
authored
Apr 17, 2015
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed undo/redo display refresh for miras & dimensions (GAL).
parent
4daf9039
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
view.cpp
common/view/view.cpp
+3
-2
view_item.h
include/view/view_item.h
+1
-1
board_undo_redo.cpp
pcbnew/board_undo_redo.cpp
+2
-0
No files found.
common/view/view.cpp
View file @
d281d86e
...
...
@@ -102,8 +102,7 @@ void VIEW::Add( VIEW_ITEM* aItem )
if
(
m_dynamic
)
aItem
->
viewAssign
(
this
);
if
(
aItem
->
viewRequiredUpdate
()
!=
VIEW_ITEM
::
NONE
)
MarkForUpdate
(
aItem
);
aItem
->
ViewUpdate
(
VIEW_ITEM
::
ALL
);
}
...
...
@@ -119,6 +118,8 @@ void VIEW::Remove( VIEW_ITEM* aItem )
if
(
item
!=
m_needsUpdate
.
end
()
)
m_needsUpdate
.
erase
(
item
);
aItem
->
clearUpdateFlags
();
}
int
layers
[
VIEW
::
VIEW_MAX_LAYERS
],
layers_count
;
...
...
include/view/view_item.h
View file @
d281d86e
...
...
@@ -85,7 +85,7 @@ public:
HIDDEN
=
0x02
/// Item is temporarily hidden (e.g. being used by a tool). Overrides VISIBLE flag.
};
VIEW_ITEM
()
:
m_view
(
NULL
),
m_flags
(
VISIBLE
),
m_requiredUpdate
(
ALL
),
VIEW_ITEM
()
:
m_view
(
NULL
),
m_flags
(
VISIBLE
),
m_requiredUpdate
(
NONE
),
m_groups
(
NULL
),
m_groupsSize
(
0
)
{}
/**
...
...
pcbnew/board_undo_redo.cpp
View file @
d281d86e
...
...
@@ -533,6 +533,7 @@ void PCB_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList, bool aRed
MODULE
*
oldModule
=
static_cast
<
MODULE
*>
(
item
);
oldModule
->
RunOnChildren
(
boost
::
bind
(
&
KIGFX
::
VIEW
::
Remove
,
view
,
_1
)
);
}
view
->
Remove
(
item
);
ratsnest
->
Remove
(
item
);
item
->
SwapData
(
image
);
...
...
@@ -544,6 +545,7 @@ void PCB_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList, bool aRed
MODULE
*
newModule
=
static_cast
<
MODULE
*>
(
item
);
newModule
->
RunOnChildren
(
boost
::
bind
(
&
KIGFX
::
VIEW
::
Add
,
view
,
_1
)
);
}
view
->
Add
(
item
);
ratsnest
->
Add
(
item
);
item
->
ClearFlags
(
SELECTED
);
...
...
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