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

Fixes #8284.
This commit is contained in:
Kristian Bendiksen authored and Magne Sjaastad committed 2021-12-01 16:27:28 +01:00
1 parent 5e2129a93b
commit d5c8ed79a0
1 file changed
+1
@@ -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 );