From 381ae6bd81aa606200403079ddd8ce7cc2cf6264 Mon Sep 17 00:00:00 2001 From: Rebecca Cox Date: Tue, 6 Mar 2018 09:22:03 +0100 Subject: [PATCH] #2527 Mohr circle: Make coloring of envelope more robust --- ApplicationCode/UserInterface/RiuMohrsCirclePlot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/UserInterface/RiuMohrsCirclePlot.cpp b/ApplicationCode/UserInterface/RiuMohrsCirclePlot.cpp index 7a7b84f2d5..fdb3dd0153 100644 --- a/ApplicationCode/UserInterface/RiuMohrsCirclePlot.cpp +++ b/ApplicationCode/UserInterface/RiuMohrsCirclePlot.cpp @@ -555,7 +555,7 @@ QColor RiuMohrsCirclePlot::envelopeColor(RimGeoMechView* view) { if (m_envolopeColors.find(view) == m_envolopeColors.end()) { - cvf::Color3ub cvfColor = RiaColorTables::summaryCurveDefaultPaletteColors().cycledColor3ub(m_envolopePlotItems.size()); + cvf::Color3ub cvfColor = RiaColorTables::summaryCurveDefaultPaletteColors().cycledColor3ub(m_envolopeColors.size()); QColor color(cvfColor.r(), cvfColor.g(), cvfColor.b());