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)
|
if (close)
|
||||||
{
|
{
|
||||||
CurrentSubpath.CloseSubpath();
|
CurrentSubpath?.CloseSubpath();
|
||||||
}
|
}
|
||||||
|
|
||||||
ClosePath();
|
ClosePath();
|
||||||
@@ -475,7 +475,7 @@
|
|||||||
|
|
||||||
if (close)
|
if (close)
|
||||||
{
|
{
|
||||||
CurrentSubpath.CloseSubpath();
|
CurrentSubpath?.CloseSubpath();
|
||||||
}
|
}
|
||||||
|
|
||||||
ClosePath();
|
ClosePath();
|
||||||
@@ -493,7 +493,7 @@
|
|||||||
|
|
||||||
if (close)
|
if (close)
|
||||||
{
|
{
|
||||||
CurrentSubpath.CloseSubpath();
|
CurrentSubpath?.CloseSubpath();
|
||||||
}
|
}
|
||||||
|
|
||||||
ClosePath();
|
ClosePath();
|
||||||
@@ -501,6 +501,11 @@
|
|||||||
|
|
||||||
public void EndPath()
|
public void EndPath()
|
||||||
{
|
{
|
||||||
|
if (CurrentPath == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
AddCurrentSubpath();
|
AddCurrentSubpath();
|
||||||
|
|
||||||
if (CurrentPath.IsClipping)
|
if (CurrentPath.IsClipping)
|
||||||
|
Reference in New Issue
Block a user