+
+ wxString::const_iterator i = ext.begin();
+ const wxString::const_iterator end = ext.end();
+ wxString extWithoutDot;
+ if ( i != end && *i == '.' )
+ extWithoutDot.assign(++i, ext.end());
+ else
+ extWithoutDot = ext;
+
+ wxCHECK_MSG( !ext.empty(), NULL, wxT("extension can't be empty") );
+
+ wxFileType *ft = m_impl->GetFileTypeFromExtension(extWithoutDot);