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
f2b5cf7d
Commit
f2b5cf7d
authored
Jul 09, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed module editor crash when pcbnew is started from the main launcher.
parent
0163b589
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
moduleframe.cpp
pcbnew/moduleframe.cpp
+4
-4
No files found.
pcbnew/moduleframe.cpp
View file @
f2b5cf7d
...
...
@@ -182,9 +182,9 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
updateTitle
();
// Create GAL canvas
EDA_DRAW_FRAME
*
drawFrame
=
static_cast
<
EDA_DRAW_FRAME
*>
(
aParent
);
PCB_BASE_FRAME
*
parentFrame
=
static_cast
<
PCB_BASE_FRAME
*>
(
Kiway
().
Player
(
FRAME_PCB
,
true
)
);
PCB_DRAW_PANEL_GAL
*
drawPanel
=
new
PCB_DRAW_PANEL_GAL
(
this
,
-
1
,
wxPoint
(
0
,
0
),
m_FrameSize
,
draw
Frame
->
GetGalCanvas
()
->
GetBackend
()
);
parent
Frame
->
GetGalCanvas
()
->
GetBackend
()
);
SetGalCanvas
(
drawPanel
);
SetBoard
(
new
BOARD
()
);
...
...
@@ -252,7 +252,7 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
// Add the layer manager ( most right side of pcbframe )
m_auimgr
.
AddPane
(
m_Layers
,
lyrs
.
Name
(
wxT
(
"m_LayersManagerToolBar"
)
).
Right
().
Layer
(
2
)
);
// Layers manager is visible and served only in GAL canvas mode.
m_auimgr
.
GetPane
(
wxT
(
"m_LayersManagerToolBar"
)
).
Show
(
draw
Frame
->
IsGalCanvasActive
()
);
m_auimgr
.
GetPane
(
wxT
(
"m_LayersManagerToolBar"
)
).
Show
(
parent
Frame
->
IsGalCanvasActive
()
);
// The left vertical toolbar (fast acces to display options)
m_auimgr
.
AddPane
(
m_optionsToolBar
,
...
...
@@ -272,7 +272,7 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
drawPanel
->
GetViewControls
(),
this
);
m_toolDispatcher
=
new
TOOL_DISPATCHER
(
m_toolManager
);
if
(
draw
Frame
->
IsGalCanvasActive
()
)
if
(
parent
Frame
->
IsGalCanvasActive
()
)
{
drawPanel
->
SetEventDispatcher
(
m_toolDispatcher
);
...
...
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