Forward port from 2.6 branch to avoid wxSTD usage crashes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -402,7 +402,7 @@ bool MyApp::OnInit()
|
||||
|
||||
wxString path = TexPathList.FindValidPath(MacroFile);
|
||||
if (!path.empty())
|
||||
ReadCustomMacros((wxChar *)path.c_str());
|
||||
ReadCustomMacros(path);
|
||||
|
||||
#if wxUSE_STATUSBAR
|
||||
wxString inStr(_T("In "));
|
||||
@@ -444,7 +444,7 @@ bool MyApp::OnInit()
|
||||
|
||||
wxString path = TexPathList.FindValidPath(MacroFile);
|
||||
if (!path.empty())
|
||||
ReadCustomMacros((wxChar*)path.c_str());
|
||||
ReadCustomMacros(path);
|
||||
|
||||
Go();
|
||||
if (runTwice)
|
||||
@@ -758,7 +758,7 @@ void MyFrame::OnLoadMacros(wxCommandEvent& WXUNUSED(event))
|
||||
if (!s.empty() && wxFileExists(s))
|
||||
{
|
||||
MacroFile = copystring(s);
|
||||
ReadCustomMacros((wxChar *)s.c_str());
|
||||
ReadCustomMacros(s);
|
||||
ShowCustomMacros();
|
||||
}
|
||||
#endif // wxUSE_FILEDLG
|
||||
|
||||
Reference in New Issue
Block a user