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
aaabdeae
Commit
aaabdeae
authored
Jul 16, 2012
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: Fix crash after opening footprint wizard
parent
a3ea46d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
17 deletions
+20
-17
footprint_wizard.cpp
pcbnew/footprint_wizard.cpp
+20
-17
No files found.
pcbnew/footprint_wizard.cpp
View file @
aaabdeae
...
...
@@ -51,15 +51,15 @@ void FOOTPRINT_WIZARD_FRAME::Process_Special_Functions( wxCommandEvent& event )
/* Function OnLeftClick
* Captures a left click event in the dialog
*
*
*/
void
FOOTPRINT_WIZARD_FRAME
::
OnLeftClick
(
wxDC
*
DC
,
const
wxPoint
&
MousePos
)
{
}
/* Function OnRightClick
* Captures a right click event in the dialog
*
* Captures a right click event in the dialog
*
*/
bool
FOOTPRINT_WIZARD_FRAME
::
OnRightClick
(
const
wxPoint
&
MousePos
,
wxMenu
*
PopMenu
)
{
...
...
@@ -87,6 +87,9 @@ void FOOTPRINT_WIZARD_FRAME::DisplayWizardInfos()
void
FOOTPRINT_WIZARD_FRAME
::
ReloadFootprint
()
{
if
(
m_FootprintWizard
==
NULL
)
return
;
SetCurItem
(
NULL
);
// Delete the current footprint
GetBoard
()
->
m_Modules
.
DeleteAll
();
...
...
@@ -108,11 +111,11 @@ void FOOTPRINT_WIZARD_FRAME::ReloadFootprint()
void
FOOTPRINT_WIZARD_FRAME
::
SelectFootprintWizard
()
{
DIALOG_FOOTPRINT_WIZARD_LIST
*
selectWizard
=
DIALOG_FOOTPRINT_WIZARD_LIST
*
selectWizard
=
new
DIALOG_FOOTPRINT_WIZARD_LIST
(
this
);
selectWizard
->
ShowModal
();
m_FootprintWizard
=
selectWizard
->
GetWizard
();
if
(
m_FootprintWizard
)
...
...
@@ -131,9 +134,9 @@ void FOOTPRINT_WIZARD_FRAME::SelectFootprintWizard()
void
FOOTPRINT_WIZARD_FRAME
::
SelectCurrentWizard
(
wxCommandEvent
&
event
)
{
SelectFootprintWizard
();
}
/**
...
...
@@ -142,26 +145,26 @@ void FOOTPRINT_WIZARD_FRAME::SelectCurrentWizard( wxCommandEvent& event )
*/
void
FOOTPRINT_WIZARD_FRAME
::
ParametersUpdated
(
wxGridEvent
&
event
)
{
int
page
=
m_PageList
->
GetSelection
();
if
(
page
<
0
)
return
;
int
n
=
m_ParameterGrid
->
GetNumberRows
();
wxArrayString
arr
;
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
{
wxString
val
=
m_ParameterGrid
->
GetCellValue
(
i
,
1
);
arr
.
Add
(
val
);
}
wxString
res
=
m_FootprintWizard
->
SetParameterValues
(
page
,
arr
);
ReloadFootprint
();
DisplayWizardInfos
();
}
...
...
@@ -169,7 +172,7 @@ void FOOTPRINT_WIZARD_FRAME::ParametersUpdated( wxGridEvent& event )
* Function RedrawActiveWindow
* Display the current selected component.
* If the component is an alias, the ROOT component is displayed
*
*
*/
void
FOOTPRINT_WIZARD_FRAME
::
RedrawActiveWindow
(
wxDC
*
DC
,
bool
EraseBg
)
{
...
...
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