#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
parent 6847e0573e
commit 2692578d9b

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 );