Fix crash

master
Jeremy Hu 2019-12-30 19:58:26 +09:30
parent 484e98a147
commit 103ca74458
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ void PartTreeWidget::updateComponentSelectState(QUuid componentId, bool selected
}
if (!component->linkToPartId.isNull()) {
auto item = m_partItemMap.find(component->linkToPartId);
if (item != m_componentItemMap.end()) {
if (item != m_partItemMap.end()) {
PartWidget *widget = (PartWidget *)itemWidget(item->second, 0);
// Unnormal state updating call should be called before check state updating call
widget->updateUnnormalState(component->combineMode != CombineMode::Normal);

View File

@ -335,7 +335,7 @@ void UvUnwrapper::calculateSizeAndRemoveInvalidCharts()
auto charts = m_charts;
auto chartSourcePartitions = m_chartSourcePartitions;
m_charts.clear();
chartSourcePartitions.clear();
m_chartSourcePartitions.clear();
for (size_t chartIndex = 0; chartIndex < charts.size(); ++chartIndex) {
auto &chart = charts[chartIndex];
float left, top, right, bottom;