Fix focus issues (#868)

This commit is contained in:
Rudy Huyn
2019-12-16 10:13:34 -08:00
committed by Eric Wong
parent dbddc7bc86
commit eb2fa6db9b
2 changed files with 11 additions and 6 deletions

View File

@@ -197,7 +197,7 @@ namespace GraphControl::DX
{
auto lineColors = m_graph->GetOptions().GetGraphColors();
if (formulaId >= 0 && formulaId < lineColors.size())
if (formulaId >= 0 && static_cast<unsigned int>(formulaId) < lineColors.size())
{
auto dotColor = lineColors[formulaId];
m_nearestPointRenderer.SetColor(D2D1::ColorF(dotColor.R * 65536 + dotColor.G * 256 + dotColor.B, 1.0));