mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-05 21:53:27 -06:00
#2527 Mohr circle: Make coloring of envelope more robust
This commit is contained in:
parent
3f7eae6bcc
commit
381ae6bd81
@ -555,7 +555,7 @@ QColor RiuMohrsCirclePlot::envelopeColor(RimGeoMechView* view)
|
|||||||
{
|
{
|
||||||
if (m_envolopeColors.find(view) == m_envolopeColors.end())
|
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());
|
QColor color(cvfColor.r(), cvfColor.g(), cvfColor.b());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user