mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#10209 Plot: fix html axis title
Qwt uses Qt::mightBeRichText to determine if the axis title is rich text or not. Qt::mightBeRichText is a simple heuristic which checks whether there is something that looks like a tag before the first line break. See: https://doc.qt.io/qt-6/qt-sub-qtgui.html#mightBeRichText Fixed bug by using html br tag to have at least some html before breaking the line. Fixes #10209.
This commit is contained in:
parent
5b5a302f21
commit
6b333c1dd9
@ -310,7 +310,7 @@ QString RimSummaryPlotAxisFormatter::autoAxisTitle() const
|
||||
{
|
||||
assembledYAxisText += QString::fromStdString( quantIt );
|
||||
|
||||
insertLineShift ? ( assembledYAxisText += "\n" ) : ( assembledYAxisText += " " );
|
||||
insertLineShift ? ( assembledYAxisText += "<br>" ) : ( assembledYAxisText += " " );
|
||||
}
|
||||
|
||||
if ( m_axisProperties->showUnitText() )
|
||||
|
Loading…
Reference in New Issue
Block a user