mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-14 02:44:58 +08:00
Check if CurrentSubpath null before CloseSubpath
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user