]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/menu.cpp
added ctor taking wxFontFlags
[wxWidgets.git] / src / os2 / menu.cpp
index c63cfe2feaa4f019ed8626063387de657d42548c..8ca65be64b336bc72378cd49160b300d4c0d9b78 100644 (file)
@@ -73,9 +73,11 @@ static wxString TextToLabel(
   const wxString&                   rsTitle
 )
 {
-    wxString                        sTitle;
+    wxString                        sTitle = "";
     const wxChar*                   zPc;
 
+    if (rsTitle.IsEmpty())
+        return sTitle;
     for (zPc = rsTitle.c_str(); *zPc != wxT('\0'); zPc++ )
     {
         if (*zPc == wxT('&') )
@@ -291,6 +293,7 @@ bool wxMenu::DoInsertOrAppend(
     ERRORID                         vError;
     wxString                        sError;
     char                            zMsg[128];
+
 #if wxUSE_ACCEL
     UpdateAccel(pItem);
 #endif // wxUSE_ACCEL