From 0936ebd3c9b689b85a5c09119015df9ff83b5cc3 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Tue, 3 Sep 2019 18:28:00 +0800 Subject: [PATCH] Gui: fix active object highlight --- src/Gui/ActiveObjectList.h | 2 +- src/Gui/Tree.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Gui/ActiveObjectList.h b/src/Gui/ActiveObjectList.h index 416530ce67..082b3e3f49 100644 --- a/src/Gui/ActiveObjectList.h +++ b/src/Gui/ActiveObjectList.h @@ -59,7 +59,7 @@ namespace Gui return dynamic_cast<_T>(getObject(it->second,true,parent,subname)); } void setObject(App::DocumentObject*, const char*, const char *subname=0, - const Gui::HighlightMode& m = Gui::LightBlue); + const Gui::HighlightMode& m = Gui::UserDefined); bool hasObject(const char*)const; void objectDeleted(const ViewProviderDocumentObject& viewProviderIn); bool hasObject(App::DocumentObject *obj, const char *, const char *subname=0) const; diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index 1a03ee707c..8c7b64a357 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -4407,6 +4407,7 @@ void DocumentObjectItem::setHighlight(bool set, Gui::HighlightMode high) { default: break; } + this->setFont(0,f); } const char *DocumentObjectItem::getTreeName() const {