mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
#2612 Tensor Vectors: Hide legend when Tensor Vectors are turned off
This commit is contained in:
parent
471d625051
commit
dc6bbba848
@ -385,7 +385,7 @@ void RimGeoMechView::updateLegends()
|
|||||||
|
|
||||||
updateTensorLegendTextAndRanges(m_tensorResults->legendConfig(), m_currentTimeStep());
|
updateTensorLegendTextAndRanges(m_tensorResults->legendConfig(), m_currentTimeStep());
|
||||||
|
|
||||||
if (tensorResults()->vectorColors() == RimTensorResults::RESULT_COLORS)
|
if (tensorResults()->vectorColors() == RimTensorResults::RESULT_COLORS && tensorResults()->showTensors())
|
||||||
{
|
{
|
||||||
m_viewer->addColorLegendToBottomLeftCorner(m_tensorResults->legendConfig->legend());
|
m_viewer->addColorLegendToBottomLeftCorner(m_tensorResults->legendConfig->legend());
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,6 @@ RimTensorResults::RimTensorResults()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RimTensorResults::~RimTensorResults()
|
RimTensorResults::~RimTensorResults()
|
||||||
{
|
{
|
||||||
delete legendConfig;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@ -110,6 +109,7 @@ RigFemResultAddress RimTensorResults::selectedTensorResult() const
|
|||||||
void RimTensorResults::setShowTensors(bool enableTensors)
|
void RimTensorResults::setShowTensors(bool enableTensors)
|
||||||
{
|
{
|
||||||
m_showTensors = enableTensors;
|
m_showTensors = enableTensors;
|
||||||
|
|
||||||
updateConnectedEditors();
|
updateConnectedEditors();
|
||||||
updateUiIconFromState(enableTensors);
|
updateUiIconFromState(enableTensors);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user