TechDraw: fix wrong color on edges

Fixes #20561
This commit is contained in:
Benjamin Bræstrup Sayoc
2025-04-02 16:05:05 +02:00
committed by Benjamin Nauck
parent acd40ce725
commit 2aba9a86ce
2 changed files with 4 additions and 6 deletions

View File

@@ -313,9 +313,8 @@ void TaskCenterLine::onColorChanged()
return;
}
Base::Color ac;
ac.setValue<QColor>(ui->cpLineColor->color());
m_cl->m_format.getColor().setValue<QColor>(ui->cpLineColor->color());
Base::Color color = Base::Color::fromValue<QColor>(ui->cpLineColor->color());
m_cl->m_format.setColor(color);
m_partFeat->recomputeFeature();
}