diff --git a/WellLogUI/src/WellLogTableDialogNew.cpp b/WellLogUI/src/WellLogTableDialogNew.cpp index d2f8d82..b9cd347 100644 --- a/WellLogUI/src/WellLogTableDialogNew.cpp +++ b/WellLogUI/src/WellLogTableDialogNew.cpp @@ -569,7 +569,7 @@ void WellLogTableDialogNew::slotSave() delete logio; return; } - int iIndex=logio->OpenTable(UTF8ToGBK(m_pWellLogs[0]->GetName())); + int iIndex=logio->OpenTable(m_pWellLogs[0]->GetName().toStdString().c_str()); if (iIndex >=0) { int fc=logio->GetTableFieldCount(iIndex); diff --git a/logPlus/qmycustomplot.cpp b/logPlus/qmycustomplot.cpp index 2d5fbcc..6cb0d44 100644 --- a/logPlus/qmycustomplot.cpp +++ b/logPlus/qmycustomplot.cpp @@ -2929,7 +2929,7 @@ bool QMyCustomPlot::SaveToSLF_Gujing() return false; } - int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName)); + int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str()); bool isfirst=false; if (iIndex < 0) { @@ -4485,7 +4485,7 @@ bool QMyCustomPlot::LoadFromSLF_Gujing(QString strSlfName, QString strLineName) zoneOrder_Gujing.insert(lines[i],QString::number(i)); } - int iIndex=logio->OpenTable(UTF8ToGBK(strLineName)); + int iIndex=logio->OpenTable(strLineName.toStdString().c_str()); if(iIndex>-1) { //------------------------------------// //判断