From 8a3cc86d0c8f2513a93495b0d073bd449b2d9a92 Mon Sep 17 00:00:00 2001 From: donovaly Date: Wed, 3 Feb 2021 03:49:56 +0100 Subject: [PATCH] [TD] fix color change for dimensions This PR fixes issue C reported here: https://forum.freecadweb.org/viewtopic.php?f=35&t=55008#p472939 - the changed color must also be applied to the dimension line and arrows --- src/Mod/TechDraw/Gui/QGIPrimPath.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/TechDraw/Gui/QGIPrimPath.cpp b/src/Mod/TechDraw/Gui/QGIPrimPath.cpp index 3355a13a0f..59933a6a93 100644 --- a/src/Mod/TechDraw/Gui/QGIPrimPath.cpp +++ b/src/Mod/TechDraw/Gui/QGIPrimPath.cpp @@ -234,6 +234,7 @@ void QGIPrimPath::setNormalColor(QColor c) { m_colNormal = c; m_colOverride = true; + m_colCurrent = m_colNormal; } void QGIPrimPath::setCapStyle(Qt::PenCapStyle c) @@ -316,6 +317,7 @@ void QGIPrimPath::resetFill() { void QGIPrimPath::setFillColor(QColor c) { m_colNormalFill = c; + m_fillColorCurrent = m_colNormalFill; // m_colDefFill = c; }