mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#504) Do not use autoscale for x-axis - simplified track/plot update code
This commit is contained in:
@@ -131,44 +131,13 @@ void RimWellLogFileCurve::fieldChangedByUi(const caf::PdmFieldHandle* changedFie
|
||||
{
|
||||
RimWellLogPlotCurve::fieldChangedByUi(changedField, oldValue, newValue);
|
||||
|
||||
RimWellLogPlot* wellLoglot;
|
||||
firstAnchestorOrThisOfType(wellLoglot);
|
||||
|
||||
RimWellLogPlotTrack* wellLoglotTrack;
|
||||
firstAnchestorOrThisOfType(wellLoglotTrack);
|
||||
|
||||
if (changedField == &m_wellPath)
|
||||
{
|
||||
this->updatePlotData();
|
||||
|
||||
if (wellLoglot)
|
||||
{
|
||||
wellLoglot->updateAvailableDepthRange();
|
||||
wellLoglot->setVisibleDepthRangeFromContents();
|
||||
}
|
||||
|
||||
if (wellLoglotTrack)
|
||||
{
|
||||
wellLoglotTrack->updateXAxisRangeFromCurves();
|
||||
}
|
||||
}
|
||||
else if (changedField == &m_wellLogChannnelName)
|
||||
{
|
||||
this->updatePlotData();
|
||||
|
||||
if (wellLoglot)
|
||||
{
|
||||
if (!wellLoglot->hasAvailableDepthRange())
|
||||
{
|
||||
wellLoglot->updateAvailableDepthRange();
|
||||
wellLoglot->setVisibleDepthRangeFromContents();
|
||||
}
|
||||
|
||||
if (wellLoglotTrack)
|
||||
{
|
||||
wellLoglotTrack->updateXAxisRangeFromCurves();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m_plot->replot();
|
||||
|
||||
Reference in New Issue
Block a user