mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 07:16:53 -06:00
Made scrollbar inactive on zoom all. Made zoom all depth show the endpoint of the plot.
This commit is contained in:
parent
aebf776408
commit
fa83513ac6
@ -432,7 +432,7 @@ void RimWellLogPlot::zoomAllDepth()
|
||||
{
|
||||
if (hasAvailableDepthRange())
|
||||
{
|
||||
setDepthZoomMinMax(m_minAvailableDepth, m_maxAvailableDepth);
|
||||
setDepthZoomMinMax(m_minAvailableDepth, m_maxAvailableDepth + 0.01*(m_maxAvailableDepth - m_minAvailableDepth));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -196,12 +196,13 @@ void RiuWellLogPlot::updateScrollBar(double minDepth, double maxDepth)
|
||||
double availableMinDepth;
|
||||
double availableMaxDepth;
|
||||
m_plotDefinition->availableDepthRange(&availableMinDepth, &availableMaxDepth);
|
||||
availableMaxDepth += 0.01*(availableMaxDepth-availableMinDepth);
|
||||
|
||||
double visibleDepth = maxDepth - minDepth;
|
||||
|
||||
m_scrollBar->blockSignals(true);
|
||||
{
|
||||
m_scrollBar->setRange((int) availableMinDepth, (int) (ceil(availableMaxDepth - visibleDepth)));
|
||||
m_scrollBar->setRange((int) availableMinDepth, (int) ((availableMaxDepth - visibleDepth)));
|
||||
m_scrollBar->setPageStep((int) visibleDepth);
|
||||
m_scrollBar->setValue((int) minDepth);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user