projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PCH compilation fix
[wxWidgets.git]
/
src
/
common
/
glcmn.cpp
diff --git
a/src/common/glcmn.cpp
b/src/common/glcmn.cpp
index b3e1f5750257a95473011e84655ca0acd8edc65b..4f5f9c60253197d53e5a0a7efbc1c18a764d8d05 100644
(file)
--- a/
src/common/glcmn.cpp
+++ b/
src/common/glcmn.cpp
@@
-118,6
+118,9
@@
void wxGLCanvasBase::OnSize(wxSizeEvent& WXUNUSED(event))
/* static */
bool wxGLCanvasBase::IsExtensionInList(const char *list, const char *extension)
{
+ if ( !list )
+ return false;
+
for ( const char *p = list; *p; p++ )
{
// advance up to the next possible match