From b32e51dddd102f2d5523cc28dae19801fe595c02 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 29 Jul 2017 16:21:15 +0100 Subject: [PATCH] [server] Try to avoid certain scenarios where drawn lines can contain no points --- Nibriboard/RippleSpace/DrawnLine.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Nibriboard/RippleSpace/DrawnLine.cs b/Nibriboard/RippleSpace/DrawnLine.cs index 2692621..664373d 100644 --- a/Nibriboard/RippleSpace/DrawnLine.cs +++ b/Nibriboard/RippleSpace/DrawnLine.cs @@ -103,7 +103,8 @@ namespace Nibriboard.RippleSpace // TODO: Add connecting lines to each DrawnLine instance to prevent gaps nextLine.Colour = Colour; nextLine.Width = Width; - results.Add(nextLine); + if(nextLine.Points.Count > 0) + results.Add(nextLine); nextLine = new DrawnLine(LineId); }