This commit is contained in:
John Lewin 2018-04-13 08:29:29 -07:00
parent 1eb125eb97
commit e7bf28d770
2 changed files with 2 additions and 4 deletions

View file

@ -124,8 +124,7 @@ namespace MatterHackers.GCodeVisualizer
}
// render the part using opengl
Graphics2DOpenGL graphics2DGl = graphics2D as Graphics2DOpenGL;
if (graphics2DGl != null)
if (graphics2D is Graphics2DOpenGL graphics2DGl)
{
graphics2DGl.DrawAACircle(position, radius, retractionColor);
}