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
51efe030
Commit
51efe030
authored
Aug 17, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed, pcbnew: crashes when removing a 3D shape in dialog box (wxGTK specific)
parent
1873e058
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
819 additions
and
741 deletions
+819
-741
kicad.mo
internat/fr/kicad.mo
+0
-0
kicad.po
internat/fr/kicad.po
+799
-741
dialog_edit_module_for_BoardEditor.cpp
pcbnew/dialog_edit_module_for_BoardEditor.cpp
+10
-0
dialog_edit_module_for_Modedit.cpp
pcbnew/dialog_edit_module_for_Modedit.cpp
+10
-0
No files found.
internat/fr/kicad.mo
View file @
51efe030
No preview for this file type
internat/fr/kicad.po
View file @
51efe030
This diff is collapsed.
Click to expand it.
pcbnew/dialog_edit_module_for_BoardEditor.cpp
View file @
51efe030
...
...
@@ -296,6 +296,16 @@ void DIALOG_MODULE_BOARD_EDITOR::On3DShapeNameSelected(wxCommandEvent& event)
if
(
m_LastSelected3DShapeIndex
>=
0
)
TransfertDisplayTo3DValues
(
m_LastSelected3DShapeIndex
);
m_LastSelected3DShapeIndex
=
m_3D_ShapeNameListBox
->
GetSelection
();
if
(
m_LastSelected3DShapeIndex
<
0
)
// happens under wxGTK when deleting an item in m_3D_ShapeNameListBox wxListBox
return
;
if
(
m_LastSelected3DShapeIndex
>=
(
int
)
m_Shapes3D_list
.
size
()
)
{
wxMessageBox
(
wxT
(
"On3DShapeNameSelected() error"
));
m_LastSelected3DShapeIndex
=
-
1
;
return
;
}
Transfert3DValuesToDisplay
(
m_Shapes3D_list
[
m_LastSelected3DShapeIndex
]
);
}
...
...
pcbnew/dialog_edit_module_for_Modedit.cpp
View file @
51efe030
...
...
@@ -174,6 +174,16 @@ void DIALOG_MODULE_MODULE_EDITOR::On3DShapeNameSelected(wxCommandEvent& event)
if
(
m_LastSelected3DShapeIndex
>=
0
)
TransfertDisplayTo3DValues
(
m_LastSelected3DShapeIndex
);
m_LastSelected3DShapeIndex
=
m_3D_ShapeNameListBox
->
GetSelection
();
if
(
m_LastSelected3DShapeIndex
<
0
)
// happens under wxGTK when deleting an item in m_3D_ShapeNameListBox wxListBox
return
;
if
(
m_LastSelected3DShapeIndex
>=
(
int
)
m_Shapes3D_list
.
size
()
)
{
wxMessageBox
(
wxT
(
"On3DShapeNameSelected() error"
));
m_LastSelected3DShapeIndex
=
-
1
;
return
;
}
Transfert3DValuesToDisplay
(
m_Shapes3D_list
[
m_LastSelected3DShapeIndex
]
);
}
...
...
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