mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5051 Fix Well Log Plot zoom with scrolling with scrollbar
This commit is contained in:
parent
3381cbc962
commit
4fd9562b4b
@ -268,6 +268,15 @@ void RimWellLogPlot::availableDepthRange( double* minimumDepth, double* maximumD
|
||||
*maximumDepth = m_maxAvailableDepth;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogPlot::visibleDepthRange( double* minimumDepth, double* maximumDepth ) const
|
||||
{
|
||||
*minimumDepth = m_minVisibleDepth;
|
||||
*maximumDepth = m_maxVisibleDepth;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -84,6 +84,7 @@ public:
|
||||
|
||||
void calculateAvailableDepthRange();
|
||||
void availableDepthRange( double* minimumDepth, double* maximumDepth ) const;
|
||||
void visibleDepthRange( double* minimumDepth, double* maximumDepth ) const;
|
||||
|
||||
void setAutoScaleYEnabled( bool enabled );
|
||||
void enableAllAutoNameTags( bool enable );
|
||||
|
@ -127,7 +127,7 @@ void RiuWellLogPlot::slotSetMinDepth( int value )
|
||||
{
|
||||
double minimumDepth;
|
||||
double maximumDepth;
|
||||
wellLogPlotDefinition()->availableDepthRange( &minimumDepth, &maximumDepth );
|
||||
wellLogPlotDefinition()->visibleDepthRange( &minimumDepth, &maximumDepth );
|
||||
|
||||
double delta = value - minimumDepth;
|
||||
wellLogPlotDefinition()->setDepthAxisRange( minimumDepth + delta, maximumDepth + delta );
|
||||
|
Loading…
Reference in New Issue
Block a user