Skip to content

Commit 0799071

Browse files
author
LoneWandererProductions
committed
make use of .AnyFast() at least once ;)
1 parent d6d25f5 commit 0799071

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

LightVector/WpfVectorRenderer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using System.Windows.Media;
1717
using System.Windows.Media.Imaging;
1818
using System.Windows.Shapes;
19+
using ExtendedSystemObjects;
1920
using LightVector.Enums;
2021
using LightVector.Interfaces;
2122

@@ -48,7 +49,7 @@ public object RenderToContainer()
4849
var canvas = new Canvas();
4950

5051
// If no objects, return an empty 0x0 canvas
51-
if (!_vectorObjects.Any()) return canvas;
52+
if (!_vectorObjects.AnyFast()) return canvas;
5253

5354
var minX = double.MaxValue;
5455
var minY = double.MaxValue;

0 commit comments

Comments
 (0)