#8284 Well Log Plot: Avoid depth shift due to long title

Fixes #8284.
This commit is contained in:
Kristian Bendiksen 2021-11-26 09:52:16 +01:00 committed by Magne Sjaastad
parent 5e2129a93b
commit d5c8ed79a0

View File

@ -688,6 +688,7 @@ void RiuQwtPlotWidget::applyPlotTitleToQwt()
{
QString plotTitleToApply = m_plotTitleEnabled ? m_plotTitle : QString( "" );
QwtText plotTitle = this->title();
plotTitle.setRenderFlags( Qt::AlignHCenter | Qt::TextSingleLine );
if ( plotTitleToApply != plotTitle.text() )
{
plotTitle.setText( plotTitleToApply );