Mercurial > mercurial > hgweb_searcher03.cgi
diff src/myframe.cpp @ 17:acb59fbbe5ee
Bug fix.
author | pyon@macmini |
---|---|
date | Mon, 28 Jul 2014 21:40:42 +0900 |
parents | 1ba97995f642 |
children | a8e6e5769e3b |
line wrap: on
line diff
--- a/src/myframe.cpp Thu Jun 19 18:46:11 2014 +0900 +++ b/src/myframe.cpp Mon Jul 28 21:40:42 2014 +0900 @@ -1,5 +1,5 @@ // Filename : myframe.cpp -// Last Change: 19-Jun-2014. +// Last Change: 28-Jul-2014. // #include "main.h" #include "db.h" @@ -81,8 +81,10 @@ SetSelection( input.Len(), 10 ); wxArrayString s = wxSplit( GetHhsInfoByHhsNo( m_jhhsno[i] ), '_', '\\' ); - wxString msg = wxT("もしかして... ") + s[0] + wxT(" ?!"); - SetMessage( msg ); + if ( !s.IsEmpty() ) { + wxString msg = wxT("もしかして... ") + s[0] + wxT(" ?!"); + SetMessage( msg ); + } return; } SetMessage( wxEmptyString );