From 415fa0a4159e4d3575b63e4467e5b7ff81020c89 Mon Sep 17 00:00:00 2001 From: Ryan Kembrey Date: Sun, 7 Sep 2025 23:05:59 +1000 Subject: [PATCH] TechDraw: Fix center marks not showing --- src/Mod/TechDraw/Gui/QGIViewPart.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Mod/TechDraw/Gui/QGIViewPart.cpp b/src/Mod/TechDraw/Gui/QGIViewPart.cpp index 88454eb051..c473513bfa 100644 --- a/src/Mod/TechDraw/Gui/QGIViewPart.cpp +++ b/src/Mod/TechDraw/Gui/QGIViewPart.cpp @@ -106,7 +106,7 @@ QVariant QGIViewPart::itemChange(GraphicsItemChange change, const QVariant& valu if (!selectState && !isUnderMouse()) { // hide everything for (auto& child : childItems()) { - if (child->type() == UserType::QGIVertex) { + if (child->type() == UserType::QGIVertex || child->type() == UserType::QGICMark) { child->hide(); } } @@ -125,7 +125,8 @@ QVariant QGIViewPart::itemChange(GraphicsItemChange change, const QVariant& valu // hide any non-selected vertices. if (!isUnderMouse()) { for (auto* child : childItems()) { - if (child->type() == UserType::QGIVertex && !child->isSelected()) { + if ((child->type() == UserType::QGIVertex || child->type() == UserType::QGICMark) && + !child->isSelected()) { child->hide(); } } @@ -1321,7 +1322,7 @@ void QGIViewPart::hoverEnterEvent(QGraphicsSceneHoverEvent *event) QGIView::hoverEnterEvent(event); for (auto& child : childItems()) { - if (child->type() == UserType::QGIVertex) { + if (child->type() == UserType::QGIVertex || child->type() == UserType::QGICMark) { child->show(); } } @@ -1334,7 +1335,7 @@ void QGIViewPart::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) QGIView::hoverLeaveEvent(event); for (auto& child : childItems()) { - if (child->type() == UserType::QGIVertex && + if ((child->type() == UserType::QGIVertex || child->type() == UserType::QGICMark) && !child->isSelected()) { child->hide(); }