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
f2055f6c
Commit
f2055f6c
authored
Aug 19, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pl_Editor: fix crash on Linux when closing Pl_Editor
parent
d04ab1fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
pl_editor_frame.cpp
pagelayout_editor/pl_editor_frame.cpp
+8
-3
No files found.
pagelayout_editor/pl_editor_frame.cpp
View file @
f2055f6c
...
@@ -66,8 +66,8 @@ PL_EDITOR_FRAME::PL_EDITOR_FRAME( wxWindow* aParent, const wxString& aTitle,
...
@@ -66,8 +66,8 @@ PL_EDITOR_FRAME::PL_EDITOR_FRAME( wxWindow* aParent, const wxString& aTitle,
m_HotkeysZoomAndGridList
=
s_PlEditor_Hokeys_Descr
;
m_HotkeysZoomAndGridList
=
s_PlEditor_Hokeys_Descr
;
m_originSelectChoice
=
0
;
m_originSelectChoice
=
0
;
m_designTreeWidth
=
1
0
0
;
m_designTreeWidth
=
1
5
0
;
m_propertiesFrameWidth
=
15
0
;
m_propertiesFrameWidth
=
20
0
;
if
(
m_canvas
)
if
(
m_canvas
)
m_canvas
->
SetEnableBlockCommands
(
false
);
m_canvas
->
SetEnableBlockCommands
(
false
);
...
@@ -178,7 +178,6 @@ PL_EDITOR_FRAME::PL_EDITOR_FRAME( wxWindow* aParent, const wxString& aTitle,
...
@@ -178,7 +178,6 @@ PL_EDITOR_FRAME::PL_EDITOR_FRAME( wxWindow* aParent, const wxString& aTitle,
PL_EDITOR_FRAME
::~
PL_EDITOR_FRAME
()
PL_EDITOR_FRAME
::~
PL_EDITOR_FRAME
()
{
{
wxGetApp
().
SaveCurrentSetupValues
(
m_configSettings
);
}
}
...
@@ -230,8 +229,14 @@ void PL_EDITOR_FRAME::OnCloseWindow( wxCloseEvent& Event )
...
@@ -230,8 +229,14 @@ void PL_EDITOR_FRAME::OnCloseWindow( wxCloseEvent& Event )
}
}
SaveSettings
();
SaveSettings
();
wxGetApp
().
SaveCurrentSetupValues
(
m_configSettings
);
// do not show the window because we do not want any paint event
// do not show the window because we do not want any paint event
Show
(
false
);
Show
(
false
);
// On Linux, m_propertiesPagelayout must be destroyed
// before deleting the main frame to avoid a crash when closing
m_propertiesPagelayout
->
Destroy
();
Destroy
();
Destroy
();
}
}
...
...
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