ui: Fixed graph node icons getting allocated and stacked on hover

This commit is contained in:
Eberhard Graether
2016-11-29 16:48:48 +01:00
parent e5b20275d1
commit b2358f581c
@@ -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);