1
0
Fork 0

[server] Try to avoid certain scenarios where drawn lines can contain no points

This commit is contained in:
Starbeamrainbowlabs 2017-07-29 16:21:15 +01:00
parent 226452cb57
commit b32e51dddd
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}