Merge branch 'main' of http://git.hivekion.com:3000/jiayulong/logplus
This commit is contained in:
commit
0868f89b1a
|
|
@ -1175,11 +1175,11 @@ void QtProjectWidgets::onPasteSelObject() // 粘贴
|
|||
char buf[1000];
|
||||
int i=1;
|
||||
while(1) {
|
||||
sprintf(buf,"%s_%d",m_strCopyCurveObjectName.toStdString().c_str(),i++);
|
||||
sprintf(buf,"%s_%d",m_strCopyCurveObjectName.toLocal8Bit().data(),i++);
|
||||
if (0>logio->FindObjectName(buf))
|
||||
break;
|
||||
}
|
||||
logio->CopyObject(m_strCopyCurveObjectName.toStdString().c_str(), buf);
|
||||
logio->CopyObject(m_strCopyCurveObjectName.toLocal8Bit().data(), buf);
|
||||
logio->Close();
|
||||
delete logio;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user