mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2612 Tensor Vectors: Hide legend when Tensor Vectors are turned off
This commit is contained in:
@@ -385,7 +385,7 @@ void RimGeoMechView::updateLegends()
|
||||
|
||||
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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user