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
1cbf03cb
Commit
1cbf03cb
authored
May 13, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ratsnest was not refreshed on board reload - fixed.
parent
d6fd8b2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
pcbframe.cpp
pcbnew/pcbframe.cpp
+1
-3
No files found.
pcbnew/pcbframe.cpp
View file @
1cbf03cb
...
@@ -544,6 +544,7 @@ void PCB_EDIT_FRAME::ViewReloadBoard( const BOARD* aBoard ) const
...
@@ -544,6 +544,7 @@ void PCB_EDIT_FRAME::ViewReloadBoard( const BOARD* aBoard ) const
view
->
Add
(
worksheet
);
view
->
Add
(
worksheet
);
view
->
Add
(
aBoard
->
GetRatsnestViewItem
()
);
view
->
Add
(
aBoard
->
GetRatsnestViewItem
()
);
aBoard
->
GetRatsnest
()
->
Recalculate
();
// Limit panning to the size of worksheet frame
// Limit panning to the size of worksheet frame
GetGalCanvas
()
->
GetViewControls
()
->
SetPanBoundary
(
aBoard
->
GetWorksheetViewItem
()
->
ViewBBox
()
);
GetGalCanvas
()
->
GetViewControls
()
->
SetPanBoundary
(
aBoard
->
GetWorksheetViewItem
()
->
ViewBBox
()
);
...
@@ -673,9 +674,6 @@ void PCB_EDIT_FRAME::UseGalCanvas( bool aEnable )
...
@@ -673,9 +674,6 @@ void PCB_EDIT_FRAME::UseGalCanvas( bool aEnable )
{
{
ViewReloadBoard
(
m_Pcb
);
ViewReloadBoard
(
m_Pcb
);
// Update potential changes in the ratsnest
m_Pcb
->
GetRatsnest
()
->
Recalculate
();
m_toolManager
.
SetEnvironment
(
m_Pcb
,
GetGalCanvas
()
->
GetView
(),
m_toolManager
.
SetEnvironment
(
m_Pcb
,
GetGalCanvas
()
->
GetView
(),
GetGalCanvas
()
->
GetViewControls
(),
this
);
GetGalCanvas
()
->
GetViewControls
(),
this
);
m_toolManager
.
ResetTools
(
TOOL_BASE
::
GAL_SWITCH
);
m_toolManager
.
ResetTools
(
TOOL_BASE
::
GAL_SWITCH
);
...
...
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