From 6bd07aa8eeabda045022da8aa9d08cef7c1c31c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Wed, 6 Nov 2019 14:54:35 +0100 Subject: [PATCH] #650 Removed the ugly nan legend displayed while loading things --- ApplicationCode/ProjectDataModel/RimEclipseView.cpp | 8 -------- ApplicationCode/ProjectDataModel/RimGeoMechView.cpp | 1 - 2 files changed, 9 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp index 560d7f05e9..bd711d7b1b 100644 --- a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp +++ b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp @@ -1828,14 +1828,6 @@ void RimEclipseView::onResetLegendsInViewer() this->cellEdgeResult()->legendConfig()->recreateLegend(); nativeOrOverrideViewer()->removeAllColorLegends(); - - if ( cellResultNormalLegendConfig ) - { - nativeOrOverrideViewer()->addColorLegendToBottomLeftCorner( cellResultNormalLegendConfig->titledOverlayFrame() ); - } - - nativeOrOverrideViewer()->addColorLegendToBottomLeftCorner( - this->cellEdgeResult()->legendConfig()->titledOverlayFrame() ); } //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/ProjectDataModel/RimGeoMechView.cpp b/ApplicationCode/ProjectDataModel/RimGeoMechView.cpp index 63a5a22679..7953fd1b77 100644 --- a/ApplicationCode/ProjectDataModel/RimGeoMechView.cpp +++ b/ApplicationCode/ProjectDataModel/RimGeoMechView.cpp @@ -424,7 +424,6 @@ void RimGeoMechView::onResetLegendsInViewer() this->cellResult()->legendConfig->recreateLegend(); nativeOrOverrideViewer()->removeAllColorLegends(); - nativeOrOverrideViewer()->addColorLegendToBottomLeftCorner( this->cellResult()->legendConfig->titledOverlayFrame() ); } //--------------------------------------------------------------------------------------------------