From 1efb832676e8ad27e7a495dba6ffc19479e0c76f Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期四, 04 九月 2025 15:51:33 +0800
Subject: [PATCH] 1.机器配方参数的获取;

---
 SourceCode/Bond/Servo/PageTransferLog.cpp |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/SourceCode/Bond/Servo/PageTransferLog.cpp b/SourceCode/Bond/Servo/PageTransferLog.cpp
index 9896a4e..978a8e0 100644
--- a/SourceCode/Bond/Servo/PageTransferLog.cpp
+++ b/SourceCode/Bond/Servo/PageTransferLog.cpp
@@ -275,7 +275,12 @@
 		return;
 	}
 
-	int nItem = m_listCtrl.InsertItem(0, _T(""));
+	int nIndex = m_listCtrl.GetItemCount();
+	if (nIndex < 0) {
+		return;
+	}
+
+	int nItem = m_listCtrl.InsertItem(nIndex, _T(""));
 	CString str;
 	str.Format(_T("%d"), data.nRecordId);
 	m_listCtrl.SetItemText(nItem, 1, str);

--
Gitblit v1.9.3