Multiaxis: Use correct mapping from PlotAxis to QwtAxisId.

This commit is contained in:
Kristian Bendiksen
2022-04-01 12:42:26 +02:00
parent 395541ebe0
commit 288269fad7
7 changed files with 30 additions and 35 deletions

View File

@@ -143,7 +143,7 @@ void RimSummaryPlotAxisFormatter::applyAxisPropertiesToPlot( RiuPlotWidget* plot
auto qwtPlotWidget = dynamic_cast<RiuQwtPlotWidget*>( plotWidget );
if ( qwtPlotWidget )
{
auto qwtAxisId = RiuQwtPlotTools::toQwtPlotAxis( axis );
auto qwtAxisId = qwtPlotWidget->toQwtPlotAxis( axis );
if ( m_axisProperties->numberFormat == RimPlotAxisProperties::NUMBER_FORMAT_AUTO &&
m_axisProperties->scaleFactor() == 1.0 )