Commit 3e8f7acd authored by charras's avatar charras

fixed pcbnew crash

parent 01726010
......@@ -93,11 +93,6 @@ void WinEDA_GraphicItemsOptionsDialog::AcceptOptions( wxCommandEvent& event )
}
/*!
* WinEDA_GraphicItemsOptionsDialog type definition
*/
IMPLEMENT_DYNAMIC_CLASS( WinEDA_GraphicItemsOptionsDialog, wxDialog )
/*!
* WinEDA_GraphicItemsOptionsDialog event table definition
......@@ -114,15 +109,9 @@ EVT_BUTTON( wxID_CANCEL, WinEDA_GraphicItemsOptionsDialog::OnCancelClick )
END_EVENT_TABLE()
/*!
* WinEDA_GraphicItemsOptionsDialog constructors
* WinEDA_GraphicItemsOptionsDialog constructor
*/
WinEDA_GraphicItemsOptionsDialog::WinEDA_GraphicItemsOptionsDialog()
{
m_BrdSettings = m_Parent->GetBoard()->GetBoardDesignSettings();
}
WinEDA_GraphicItemsOptionsDialog::WinEDA_GraphicItemsOptionsDialog(
WinEDA_BasePcbFrame* parent,
wxWindowID id,
......@@ -131,6 +120,8 @@ WinEDA_GraphicItemsOptionsDialog::WinEDA_GraphicItemsOptionsDialog(
const wxSize& size,
long style )
{
m_Parent = parent;
m_BrdSettings = m_Parent->GetBoard()->GetBoardDesignSettings();
Create( parent, id, caption, pos, size, style );
}
......
......@@ -64,14 +64,12 @@
class WinEDA_GraphicItemsOptionsDialog: public wxDialog
{
DECLARE_DYNAMIC_CLASS( WinEDA_GraphicItemsOptionsDialog )
DECLARE_EVENT_TABLE()
public:
BOARD_DESIGN_SETTINGS* m_BrdSettings;
/// Constructors
WinEDA_GraphicItemsOptionsDialog( );
WinEDA_GraphicItemsOptionsDialog( WinEDA_BasePcbFrame* parent, wxWindowID id = SYMBOL_WINEDA_GRAPHICITEMSOPTIONSDIALOG_IDNAME, const wxString& caption = SYMBOL_WINEDA_GRAPHICITEMSOPTIONSDIALOG_TITLE, const wxPoint& pos = SYMBOL_WINEDA_GRAPHICITEMSOPTIONSDIALOG_POSITION, const wxSize& size = SYMBOL_WINEDA_GRAPHICITEMSOPTIONSDIALOG_SIZE, long style = SYMBOL_WINEDA_GRAPHICITEMSOPTIONSDIALOG_STYLE );
/// Creation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment