From b2358f581c4ce848eae0dcdbd483e444ce943692 Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Tue, 29 Nov 2016 16:48:48 +0100 Subject: [PATCH] ui: Fixed graph node icons getting allocated and stacked on hover --- src/lib_gui/qt/view/graphElements/QtGraphNode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_gui/qt/view/graphElements/QtGraphNode.cpp b/src/lib_gui/qt/view/graphElements/QtGraphNode.cpp index d538ba0b..4ffb8edd 100644 --- a/src/lib_gui/qt/view/graphElements/QtGraphNode.cpp +++ b/src/lib_gui/qt/view/graphElements/QtGraphNode.cpp @@ -419,7 +419,7 @@ void QtGraphNode::setStyle(const GraphViewStyle::NodeStyle& style) m_undefinedRect->setRadius(radius); } - if (style.iconPath.size()) + if (!m_icon && style.iconPath.size()) { QtDeviceScaledPixmap pixmap(QString::fromStdString(style.iconPath)); pixmap.scaleToHeight(style.iconSize);