mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
FIX:add mode for syscAMsInfoDialog
jira: none Change-Id: Iabfc9953f86cd08a2357a9197d6e1afe8d781d9f (cherry picked from commit eaeac42b19b322f56b501c0d2ce99c4a6b2fd050)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user