Fix crash
parent
484e98a147
commit
103ca74458
|
@ -137,7 +137,7 @@ void PartTreeWidget::updateComponentSelectState(QUuid componentId, bool selected
|
||||||
}
|
}
|
||||||
if (!component->linkToPartId.isNull()) {
|
if (!component->linkToPartId.isNull()) {
|
||||||
auto item = m_partItemMap.find(component->linkToPartId);
|
auto item = m_partItemMap.find(component->linkToPartId);
|
||||||
if (item != m_componentItemMap.end()) {
|
if (item != m_partItemMap.end()) {
|
||||||
PartWidget *widget = (PartWidget *)itemWidget(item->second, 0);
|
PartWidget *widget = (PartWidget *)itemWidget(item->second, 0);
|
||||||
// Unnormal state updating call should be called before check state updating call
|
// Unnormal state updating call should be called before check state updating call
|
||||||
widget->updateUnnormalState(component->combineMode != CombineMode::Normal);
|
widget->updateUnnormalState(component->combineMode != CombineMode::Normal);
|
||||||
|
|
|
@ -335,7 +335,7 @@ void UvUnwrapper::calculateSizeAndRemoveInvalidCharts()
|
||||||
auto charts = m_charts;
|
auto charts = m_charts;
|
||||||
auto chartSourcePartitions = m_chartSourcePartitions;
|
auto chartSourcePartitions = m_chartSourcePartitions;
|
||||||
m_charts.clear();
|
m_charts.clear();
|
||||||
chartSourcePartitions.clear();
|
m_chartSourcePartitions.clear();
|
||||||
for (size_t chartIndex = 0; chartIndex < charts.size(); ++chartIndex) {
|
for (size_t chartIndex = 0; chartIndex < charts.size(); ++chartIndex) {
|
||||||
auto &chart = charts[chartIndex];
|
auto &chart = charts[chartIndex];
|
||||||
float left, top, right, bottom;
|
float left, top, right, bottom;
|
||||||
|
|
Loading…
Reference in New Issue