FIX:add mode for syscAMsInfoDialog

jira: none
Change-Id: Iabfc9953f86cd08a2357a9197d6e1afe8d781d9f
(cherry picked from commit eaeac42b19b322f56b501c0d2ce99c4a6b2fd050)
This commit is contained in:
zhou.xu
2025-01-06 16:38:30 +08:00
committed by Noisyfox
parent ed3175f7a0
commit e2d86888b5
10 changed files with 376 additions and 125 deletions

View File

@@ -4153,7 +4153,7 @@ PartPlate* PartPlateList::get_plate(int index)
{
PartPlate* plate = NULL;
if (index >= m_plate_list.size())
if (index >= m_plate_list.size() || index < 0)
{
BOOST_LOG_TRIVIAL(warning) << __FUNCTION__ << boost::format(":can not find index %1%, size %2%") % index % m_plate_list.size();
return NULL;