1、修复针孔径显示错误的bug
This commit is contained in:
华海艳 2024-03-08 16:34:40 +08:00
parent 97a0fd7afc
commit 287b2100f0

View File

@ -3976,7 +3976,8 @@ void MainWidget::slotSetPatternData()
{
//冲缝机如果花版中色序大于冲孔针杆数,将此色序设置为缝纫色序
//因为打版软件自带缝纫色序错误(与冲孔混用),在界面这样临时处理下,后续需要与打版软件商讨修改
if(m_fileColorTable[i] >= punchNum)
//后256个色序保存的是针孔大小不能改变
if(m_fileColorTable[i] >= punchNum && i < (sizeof(m_fileColorTable)/sizeof(m_fileColorTable[0])/2))
{
m_fileColorTable[i] = EMB_NEEDLE_NUM + PUNCH_NEEDLE_NUM + 1;
}
@ -4440,7 +4441,7 @@ void MainWidget::onFiveSecondTimer()
}
else
{
//g_pMachine->setTcpConnectState(1);//将连接状态置为1
g_pMachine->setTcpConnectState(1);//将连接状态置为1
}
m_conFlag = -1;
}