From 8d315571789dcfafc93722fed2667aa61789ffa8 Mon Sep 17 00:00:00 2001 From: YiHui Liu Date: Fri, 3 Jun 2022 12:20:35 +0800 Subject: [PATCH] fix: source save --- MCA/MainFrm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MCA/MainFrm.cpp b/MCA/MainFrm.cpp index 2c6776a..528a05a 100644 --- a/MCA/MainFrm.cpp +++ b/MCA/MainFrm.cpp @@ -383,8 +383,9 @@ void CMainFrame::OnOptSave() CString szfile = fileDlg.GetPathName(); std::ofstream ofs(szfile); + std::string str = CStringA(pView->m_sSource); ofs << pView->m_nTime << std::endl; - ofs << pView->m_sSource << std::endl; + ofs << str.c_str() << std::endl; for (int i = 0; i < 1024; i++) ofs << i << ", " << pDoc->m_nChannelCount[i] << std::endl;