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
84344983
Commit
84344983
authored
May 06, 2014
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix new bug which crashed pcbnew running under kicad.exe while adding a new module in mod editor
parent
3b071287
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
moduleframe.cpp
pcbnew/moduleframe.cpp
+9
-6
No files found.
pcbnew/moduleframe.cpp
View file @
84344983
...
...
@@ -31,7 +31,7 @@
#include <fctsys.h>
#include <pgm_base.h>
//#include <kiface_i
.h>
#include <kiway
.h>
#include <project.h>
#include <class_drawpanel.h>
#include <confirm.h>
...
...
@@ -50,7 +50,6 @@
#include <hotkeys.h>
#include <module_editor_frame.h>
#include <wildcards_and_files_ext.h>
#include <kiway.h>
static
PCB_SCREEN
*
s_screenModule
;
// the PCB_SCREEN used by the footprint editor
...
...
@@ -296,7 +295,8 @@ BOARD_DESIGN_SETTINGS& FOOTPRINT_EDIT_FRAME::GetDesignSettings() const
{
// get the BOARD_DESIGN_SETTINGS from the parent editor, not our BOARD.
PCB_BASE_FRAME
*
parentFrame
=
(
PCB_BASE_FRAME
*
)
GetParent
();
// @todo(DICK) change the routing to some default or the board directly, parent may not exist
PCB_BASE_FRAME
*
parentFrame
=
(
PCB_BASE_FRAME
*
)
Kiway
().
Player
(
FRAME_PCB
,
true
);
wxASSERT
(
parentFrame
);
...
...
@@ -308,7 +308,8 @@ void FOOTPRINT_EDIT_FRAME::SetDesignSettings( const BOARD_DESIGN_SETTINGS& aSett
{
// set the BOARD_DESIGN_SETTINGS into parent editor, not our BOARD.
PCB_BASE_FRAME
*
parentFrame
=
(
PCB_BASE_FRAME
*
)
GetParent
();
// @todo(DICK) change the routing to some default or the board directly, parent may not exist
PCB_BASE_FRAME
*
parentFrame
=
(
PCB_BASE_FRAME
*
)
Kiway
().
Player
(
FRAME_PCB
,
true
);
wxASSERT
(
parentFrame
);
...
...
@@ -320,7 +321,8 @@ const PCB_PLOT_PARAMS& FOOTPRINT_EDIT_FRAME::GetPlotSettings() const
{
// get the settings from the parent editor, not our BOARD.
PCB_BASE_FRAME
*
parentFrame
=
(
PCB_BASE_FRAME
*
)
GetParent
();
// @todo(DICK) change the routing to some default or the board directly, parent may not exist
PCB_BASE_FRAME
*
parentFrame
=
(
PCB_BASE_FRAME
*
)
Kiway
().
Player
(
FRAME_PCB
,
true
);
wxASSERT
(
parentFrame
);
...
...
@@ -332,7 +334,8 @@ void FOOTPRINT_EDIT_FRAME::SetPlotSettings( const PCB_PLOT_PARAMS& aSettings )
{
// set the settings into parent editor, not our BOARD.
PCB_BASE_FRAME
*
parentFrame
=
(
PCB_BASE_FRAME
*
)
GetParent
();
// @todo(DICK) change the routing to some default or the board directly, parent may not exist
PCB_BASE_FRAME
*
parentFrame
=
(
PCB_BASE_FRAME
*
)
Kiway
().
Player
(
FRAME_PCB
,
true
);
wxASSERT
(
parentFrame
);
...
...
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