]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/glcmn.cpp
added the possibility to rescale the image during loading, especially useful with...
[wxWidgets.git] / src / common / glcmn.cpp
index b3e1f5750257a95473011e84655ca0acd8edc65b..4f5f9c60253197d53e5a0a7efbc1c18a764d8d05 100644 (file)
@@ -118,6 +118,9 @@ void wxGLCanvasBase::OnSize(wxSizeEvent& WXUNUSED(event))
 /* static */
 bool wxGLCanvasBase::IsExtensionInList(const char *list, const char *extension)
 {
 /* 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
     for ( const char *p = list; *p; p++ )
     {
         // advance up to the next possible match