Fix update of fonts in summary and grid cross plot axes

This commit is contained in:
Gaute Lindkvist
2019-10-25 09:40:57 +02:00
parent a4c78cb7c3
commit 0e9cda8e84
10 changed files with 23 additions and 56 deletions

View File

@@ -26,7 +26,7 @@
#include "RigStatisticsCalculator.h"
#include "RimPlotAxisAnnotation.h"
#include "RimRiuQwtPlotOwnerInterface.h"
#include "RimPlotInterface.h"
#include "cafPdmUiSliderEditor.h"
@@ -416,17 +416,17 @@ void RimPlotAxisProperties::fieldChangedByUi( const caf::PdmFieldHandle* changed
m_isAutoZoom = false;
}
RimRiuQwtPlotOwnerInterface* parentPlot = nullptr;
RimPlotInterface* parentPlot = nullptr;
this->firstAncestorOrThisOfType( parentPlot );
if ( parentPlot )
{
if ( changedField == &isLogarithmicScaleEnabled )
{
parentPlot->updateAxisScaling();
parentPlot->loadDataAndUpdate();
}
else
{
parentPlot->updateAxisDisplay();
parentPlot->updateAxes();
}
}
}