mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-11 07:56:08 -06:00
#4303 Calculated curve : Always show scaling factor in axis legend text
This commit is contained in:
parent
35e1d5d455
commit
af46490b9f
@ -279,9 +279,14 @@ QString RimSummaryPlotYAxisFormatter::autoAxisTitle() const
|
|||||||
assembledYAxisText += QString::fromStdString(quantIt) + " ";
|
assembledYAxisText += QString::fromStdString(quantIt) + " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_axisProperties->showUnitText() && !unitIt.first.empty())
|
if (m_axisProperties->showUnitText())
|
||||||
{
|
{
|
||||||
assembledYAxisText += "[" + QString::fromStdString(unitIt.first) + scaleFactorText + "] ";
|
QString unitAndScaleText = QString::fromStdString(unitIt.first) + scaleFactorText;
|
||||||
|
|
||||||
|
if (!unitAndScaleText.isEmpty())
|
||||||
|
{
|
||||||
|
assembledYAxisText += "[" + unitAndScaleText + "] ";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user