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
035b231b
Commit
035b231b
authored
Mar 10, 2015
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refinement for fix in 5497.
parent
4ad48982
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
pcbframe.cpp
pcbnew/pcbframe.cpp
+5
-1
selection_tool.cpp
pcbnew/tools/selection_tool.cpp
+11
-2
No files found.
pcbnew/pcbframe.cpp
View file @
035b231b
...
@@ -467,6 +467,8 @@ PCB_EDIT_FRAME::~PCB_EDIT_FRAME()
...
@@ -467,6 +467,8 @@ PCB_EDIT_FRAME::~PCB_EDIT_FRAME()
void
PCB_EDIT_FRAME
::
SetBoard
(
BOARD
*
aBoard
)
void
PCB_EDIT_FRAME
::
SetBoard
(
BOARD
*
aBoard
)
{
{
bool
new_board
=
(
aBoard
!=
m_Pcb
);
PCB_BASE_FRAME
::
SetBoard
(
aBoard
);
PCB_BASE_FRAME
::
SetBoard
(
aBoard
);
if
(
IsGalCanvasActive
()
)
if
(
IsGalCanvasActive
()
)
...
@@ -484,6 +486,8 @@ void PCB_EDIT_FRAME::SetBoard( BOARD* aBoard )
...
@@ -484,6 +486,8 @@ void PCB_EDIT_FRAME::SetBoard( BOARD* aBoard )
{
{
m_toolManager
->
SetEnvironment
(
aBoard
,
drawPanel
->
GetView
(),
m_toolManager
->
SetEnvironment
(
aBoard
,
drawPanel
->
GetView
(),
drawPanel
->
GetViewControls
(),
this
);
drawPanel
->
GetViewControls
(),
this
);
if
(
new_board
)
m_toolManager
->
ResetTools
(
TOOL_BASE
::
MODEL_RELOAD
);
m_toolManager
->
ResetTools
(
TOOL_BASE
::
MODEL_RELOAD
);
}
}
}
}
...
...
pcbnew/tools/selection_tool.cpp
View file @
035b231b
...
@@ -88,6 +88,15 @@ SELECTION_TOOL::~SELECTION_TOOL()
...
@@ -88,6 +88,15 @@ SELECTION_TOOL::~SELECTION_TOOL()
void
SELECTION_TOOL
::
Reset
(
RESET_REASON
aReason
)
void
SELECTION_TOOL
::
Reset
(
RESET_REASON
aReason
)
{
{
if
(
aReason
==
TOOL_BASE
::
MODEL_RELOAD
)
{
// Remove pointers to the selected items from containers
// without changing their properties (as they are already deleted
// while a new board is loaded)
m_selection
.
group
->
Clear
();
m_selection
.
clear
();
}
else
// Restore previous properties of selected items and remove them from containers
// Restore previous properties of selected items and remove them from containers
clearSelection
();
clearSelection
();
...
...
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