changeset 17:acb59fbbe5ee

Bug fix.
author pyon@macmini
date Mon, 28 Jul 2014 21:40:42 +0900
parents 1ba97995f642
children a8e6e5769e3b
files Changes src/myframe.cpp
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Changes	Thu Jun 19 18:46:11 2014 +0900
+++ b/Changes	Mon Jul 28 21:40:42 2014 +0900
@@ -1,3 +1,8 @@
+version 03.19
+2014-07-30
+ Bug fix.
+
+----
 version 03.18
 2014-06-20
  Get/Put DB files to shared-directory.
--- 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 );