diff --git a/src/parttreewidget.cpp b/src/parttreewidget.cpp index 2bd0b7c8..ae431aaf 100644 --- a/src/parttreewidget.cpp +++ b/src/parttreewidget.cpp @@ -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); diff --git a/thirdparty/simpleuv/simpleuv/uvunwrapper.cpp b/thirdparty/simpleuv/simpleuv/uvunwrapper.cpp index 81a86315..838f7587 100644 --- a/thirdparty/simpleuv/simpleuv/uvunwrapper.cpp +++ b/thirdparty/simpleuv/simpleuv/uvunwrapper.cpp @@ -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;