Check if CurrentSubpath null before CloseSubpath

This commit is contained in:
BobLd
2020-04-02 19:55:27 +01:00
committed by Eliot Jones
parent 20c4b9594b
commit b923a42f9e

View File

@@ -458,7 +458,7 @@
if (close)
{
CurrentSubpath.CloseSubpath();
CurrentSubpath?.CloseSubpath();
}
ClosePath();
@@ -475,7 +475,7 @@
if (close)
{
CurrentSubpath.CloseSubpath();
CurrentSubpath?.CloseSubpath();
}
ClosePath();
@@ -493,7 +493,7 @@
if (close)
{
CurrentSubpath.CloseSubpath();
CurrentSubpath?.CloseSubpath();
}
ClosePath();
@@ -501,6 +501,11 @@
public void EndPath()
{
if (CurrentPath == null)
{
return;
}
AddCurrentSubpath();
if (CurrentPath.IsClipping)