Make sure there are lines in z control before we try and draw it

This commit is contained in:
LarsBrubaker 2017-12-26 20:35:19 -08:00
parent 727f071e35
commit bfa585c084

View file

@ -288,7 +288,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
private void InteractionLayer_AfterDraw(object sender, DrawEventArgs drawEvent)
{
if (InteractionContext.Scene.HasSelection)
if (InteractionContext.Scene.HasSelection
&& lines.Count > 2)
{
if (zHeightDisplayInfo.Visible)
{