comparison src/myframe.cpp @ 17:acb59fbbe5ee

Bug fix.
author pyon@macmini
date Mon, 28 Jul 2014 21:40:42 +0900
parents 1ba97995f642
children a8e6e5769e3b
comparison
equal deleted inserted replaced
16:1ba97995f642 17:acb59fbbe5ee
1 // Filename : myframe.cpp 1 // Filename : myframe.cpp
2 // Last Change: 19-Jun-2014. 2 // Last Change: 28-Jul-2014.
3 // 3 //
4 #include "main.h" 4 #include "main.h"
5 #include "db.h" 5 #include "db.h"
6 #include "about.h" 6 #include "about.h"
7 #include "kana.h" 7 #include "kana.h"
79 if ( m_jhhsno[i].StartsWith( input ) ) { 79 if ( m_jhhsno[i].StartsWith( input ) ) {
80 ChangeValue( m_jhhsno[i] ); 80 ChangeValue( m_jhhsno[i] );
81 SetSelection( input.Len(), 10 ); 81 SetSelection( input.Len(), 10 );
82 82
83 wxArrayString s = wxSplit( GetHhsInfoByHhsNo( m_jhhsno[i] ), '_', '\\' ); 83 wxArrayString s = wxSplit( GetHhsInfoByHhsNo( m_jhhsno[i] ), '_', '\\' );
84 wxString msg = wxT("もしかして... ") + s[0] + wxT(" ?!"); 84 if ( !s.IsEmpty() ) {
85 SetMessage( msg ); 85 wxString msg = wxT("もしかして... ") + s[0] + wxT(" ?!");
86 SetMessage( msg );
87 }
86 return; 88 return;
87 } 89 }
88 SetMessage( wxEmptyString ); 90 SetMessage( wxEmptyString );
89 } 91 }
90 event.Skip(); 92 event.Skip();