1
0
Fork 0
mirror of https://github.com/sbrl/Nibriboard.git synced 2018-01-10 21:33:49 +00:00

[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

View file

@ -103,7 +103,8 @@ namespace Nibriboard.RippleSpace
// TODO: Add connecting lines to each DrawnLine instance to prevent gaps // TODO: Add connecting lines to each DrawnLine instance to prevent gaps
nextLine.Colour = Colour; nextLine.Colour = Colour;
nextLine.Width = Width; nextLine.Width = Width;
results.Add(nextLine); if(nextLine.Points.Count > 0)
results.Add(nextLine);
nextLine = new DrawnLine(LineId); nextLine = new DrawnLine(LineId);
} }