#2527 Mohr circle: Make coloring of envelope more robust

This commit is contained in:
Rebecca Cox 2018-03-06 09:22:03 +01:00
parent 3f7eae6bcc
commit 381ae6bd81

View File

@ -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());