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 247a188f34
commit 5287008dff
2 changed files with 4 additions and 6 deletions

View File

@@ -80,10 +80,9 @@ void QGIEdge::setPrettyNormal() {
// Base::Console().Message("QGIE::setPrettyNormal()\n");
if (isHiddenEdge) {
m_pen.setColor(getHiddenColor());
} else {
m_pen.setColor(getNormalColor());
return;
}
//should call QGIPP::setPrettyNormal()?
QGIPrimPath::setPrettyNormal();
}
QColor QGIEdge::getHiddenColor()

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();
}