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
07e5eee1
Commit
07e5eee1
authored
Feb 26, 2012
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes wxSingleChoiceDialog ambiguous constructor compile bug using wxWidgets 2.9.4 or greater.
parent
6219291d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
gerbview_frame.cpp
gerbview/gerbview_frame.cpp
+6
-2
highlight.cpp
pcbnew/highlight.cpp
+5
-1
No files found.
gerbview/gerbview_frame.cpp
View file @
07e5eee1
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
* This program source code file is part of KiCad, a free EDA CAD application.
* This program source code file is part of KiCad, a free EDA CAD application.
*
*
* Copyright (C) 1994 Jean-Pierre Charras, jaen-pierre.charras@gipsa-lab.inpg.com
* Copyright (C) 1994 Jean-Pierre Charras, jaen-pierre.charras@gipsa-lab.inpg.com
* Copyright (C) 2011 Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 1992-2011 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 1992-2011 KiCad Developers, see AUTHORS.txt for contributors.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -457,8 +456,13 @@ void GERBVIEW_FRAME::Liste_D_Codes()
...
@@ -457,8 +456,13 @@ void GERBVIEW_FRAME::Liste_D_Codes()
}
}
}
}
wxSingleChoiceDialog
dlg
(
this
,
wxEmptyString
,
_
(
"D Codes"
),
list
,
NULL
,
#if wxCHECK_VERSION( 2, 9, 4 )
wxSingleChoiceDialog
dlg
(
this
,
wxEmptyString
,
_
(
"D Codes"
),
list
,
(
void
**
)
NULL
,
wxCHOICEDLG_STYLE
&
~
wxCANCEL
);
wxCHOICEDLG_STYLE
&
~
wxCANCEL
);
#else
wxSingleChoiceDialog
dlg
(
this
,
wxEmptyString
,
_
(
"D Codes"
),
list
,
(
char
**
)
NULL
,
wxCHOICEDLG_STYLE
&
~
wxCANCEL
);
#endif
dlg
.
ShowModal
();
dlg
.
ShowModal
();
}
}
...
...
pcbnew/highlight.cpp
View file @
07e5eee1
...
@@ -75,7 +75,11 @@ void PCB_EDIT_FRAME::ListNetsAndSelect( wxCommandEvent& event )
...
@@ -75,7 +75,11 @@ void PCB_EDIT_FRAME::ListNetsAndSelect( wxCommandEvent& event )
list
.
Add
(
Line
);
list
.
Add
(
Line
);
}
}
wxSingleChoiceDialog
choiceDlg
(
this
,
wxEmptyString
,
_
(
"Select Net"
),
list
,
NULL
);
#if wxCHECK_VERSION( 2, 9, 4 )
wxSingleChoiceDialog
choiceDlg
(
this
,
wxEmptyString
,
_
(
"Select Net"
),
list
,
(
void
**
)
NULL
);
#else
wxSingleChoiceDialog
choiceDlg
(
this
,
wxEmptyString
,
_
(
"Select Net"
),
list
,
(
char
**
)
NULL
);
#endif
if
(
(
choiceDlg
.
ShowModal
()
==
wxID_CANCEL
)
||
(
choiceDlg
.
GetSelection
()
==
wxNOT_FOUND
)
)
if
(
(
choiceDlg
.
ShowModal
()
==
wxID_CANCEL
)
||
(
choiceDlg
.
GetSelection
()
==
wxNOT_FOUND
)
)
return
;
return
;
...
...
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