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
2ecb72da
Commit
2ecb72da
authored
Mar 10, 2015
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed disappearing selected items when switching between GAL canvases.
parent
26f20fbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
selection_tool.cpp
pcbnew/tools/selection_tool.cpp
+3
-10
No files found.
pcbnew/tools/selection_tool.cpp
View file @
2ecb72da
...
@@ -64,6 +64,7 @@ public:
...
@@ -64,6 +64,7 @@ public:
}
}
};
};
SELECTION_TOOL
::
SELECTION_TOOL
()
:
SELECTION_TOOL
::
SELECTION_TOOL
()
:
TOOL_INTERACTIVE
(
"pcbnew.InteractiveSelection"
),
TOOL_INTERACTIVE
(
"pcbnew.InteractiveSelection"
),
m_frame
(
NULL
),
m_additive
(
false
),
m_multiple
(
false
),
m_frame
(
NULL
),
m_additive
(
false
),
m_multiple
(
false
),
...
@@ -87,16 +88,8 @@ SELECTION_TOOL::~SELECTION_TOOL()
...
@@ -87,16 +88,8 @@ SELECTION_TOOL::~SELECTION_TOOL()
void
SELECTION_TOOL
::
Reset
(
RESET_REASON
aReason
)
void
SELECTION_TOOL
::
Reset
(
RESET_REASON
aReason
)
{
{
if
(
aReason
==
TOOL_BASE
::
MODEL_RELOAD
)
// Restore previous properties of selected items and remove them from containers
{
clearSelection
();
// Remove pointers to the selected items from containers
// without changing their properties (as they are already deleted)
m_selection
.
group
->
Clear
();
m_selection
.
clear
();
}
else
// Restore previous properties of selected items and remove them from containers
clearSelection
();
m_frame
=
getEditFrame
<
PCB_BASE_FRAME
>
();
m_frame
=
getEditFrame
<
PCB_BASE_FRAME
>
();
m_locked
=
true
;
m_locked
=
true
;
...
...
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