mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
Fix type in RiaColorTools contrastColor
This commit is contained in:
1 parent
d54c509b35
commit
128208d35a
6 files changed
+7
-7
No files matched your search
@@ -1106,7 +1106,7 @@ cvf::Color3f RiuViewer::computeContrastColor() const
|
||||
|
||||
if (m_rimView.notNull())
|
||||
{
|
||||
contrastColor = RiaColorTools::constrastColor(m_rimView->backgroundColor());
|
||||
contrastColor = RiaColorTools::contrastColor(m_rimView->backgroundColor());
|
||||
}
|
||||
|
||||
return contrastColor;
|
||||
|
||||
@@ -306,7 +306,7 @@ QwtPlotItem* RiuWellPathComponentPlotItem::createMarker(double posX, double dept
|
||||
QColor textColor = RiaColorTools::toQColor(baseColor.toColor3f(), 1.0);
|
||||
if (contrastTextColor)
|
||||
{
|
||||
textColor = RiaColorTools::toQColor(RiaColorTools::constrastColor(baseColor.toColor3f()));
|
||||
textColor = RiaColorTools::toQColor(RiaColorTools::contrastColor(baseColor.toColor3f()));
|
||||
}
|
||||
QwtPlotMarker* marker = new QwtPlotMarker(label);
|
||||
RiuQwtSymbol* symbol = new RiuQwtSymbol(symbolType, "", RiuQwtSymbol::LabelRightOfSymbol);
|
||||
|
||||
Reference in new issue
Block a user