[server] Try to avoid certain scenarios where drawn lines can contain no points
This commit is contained in:
parent
226452cb57
commit
b32e51dddd
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue