导出Wis崩溃修改
This commit is contained in:
parent
6d48697012
commit
cf62a10c16
|
|
@ -2484,7 +2484,7 @@ void TranToWis(CMemRdWt *mrw,QString Outfile,float Outsdep,float Outedep,float O
|
||||||
out=WisFile.CreateTable(0,tmane.toStdString().c_str());
|
out=WisFile.CreateTable(0,tmane.toStdString().c_str());
|
||||||
if(out<0) {
|
if(out<0) {
|
||||||
AfxMessageBox("产生表\""+tmane+"\"错误!");
|
AfxMessageBox("产生表\""+tmane+"\"错误!");
|
||||||
delete tableFieldInfo;
|
delete[] tableFieldInfo;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Slf_TABLE_FIELD *wtableFieldInfo;
|
Slf_TABLE_FIELD *wtableFieldInfo;
|
||||||
|
|
@ -2575,7 +2575,7 @@ void TranToWis(CMemRdWt *mrw,QString Outfile,float Outsdep,float Outedep,float O
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QStringList css=m_Tran.SlfDefTable[TranTable].menuinfo[k].split(",");
|
QStringList css=m_Tran.SlfDefTable[TranTable].menuinfo[k].split(",");
|
||||||
if(css.size()>val) cs=css[cs.toInt()];
|
if(css.size()>val && cs.toInt()>0) cs=css[cs.toInt()-1];
|
||||||
css=m_Tran.WisDefTable[TranTable].menuinfo[n].split(",");
|
css=m_Tran.WisDefTable[TranTable].menuinfo[n].split(",");
|
||||||
val=css.indexOf(cs);
|
val=css.indexOf(cs);
|
||||||
if(val<0) {
|
if(val<0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user