mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-23 21:05:31 -07:00
ENH:add log
jira: none Change-Id: I95f709399f63a0d5093d4c6a3dd7bc8f5c4f04b0 (cherry picked from commit c6f7e2e9e029a51c82fecd379ad55ad5e676862c)
This commit is contained in:
parent
e746ef0451
commit
45e21155d5
3 changed files with 13 additions and 3 deletions
|
|
@ -292,9 +292,15 @@ void SyncAmsInfoDialog::deal_ok()
|
|||
m_result.direct_sync = false;
|
||||
m_result.sync_maps.clear();
|
||||
for (size_t i = 0; i < m_ams_mapping_result.size(); i++) {
|
||||
auto& temp = m_result.sync_maps[m_ams_mapping_result[i].id];
|
||||
temp.ams_id = m_ams_mapping_result[i].ams_id;
|
||||
temp.slot_id = m_ams_mapping_result[i].slot_id;
|
||||
auto temp_idx = m_ams_mapping_result[i].id;
|
||||
if (temp_idx >= 0 && temp_idx < m_result.sync_maps.size()) {
|
||||
auto &temp = m_result.sync_maps[m_ams_mapping_result[i].id];
|
||||
temp.ams_id = m_ams_mapping_result[i].ams_id;
|
||||
temp.slot_id = m_ams_mapping_result[i].slot_id;
|
||||
}
|
||||
else{
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "check error: m_result.sync_maps:" << temp_idx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue