diff --git a/ApplicationCode/UserInterface/RiuWellLogPlot.cpp b/ApplicationCode/UserInterface/RiuWellLogPlot.cpp index bed78012aa..a22a5b351f 100644 --- a/ApplicationCode/UserInterface/RiuWellLogPlot.cpp +++ b/ApplicationCode/UserInterface/RiuWellLogPlot.cpp @@ -121,6 +121,8 @@ void RiuWellLogPlot::insertTrackPlot(RiuWellLogTrack* trackPlot, size_t index) legend->contentsWidget()->layout()->setAlignment(Qt::AlignBottom | Qt::AlignHCenter); m_legends.insert(static_cast(index), legend); + this->connect(trackPlot, SIGNAL(legendDataChanged(const QVariant &, const QList< QwtLegendData > &)), SLOT(scheduleUpdateChildrenLayout())); + if (!m_plotDefinition->areTrackLegendsVisible()) { legend->hide();