Rename PdfSubpath.ClosePath() to PdfSubpath.CloseSubpath() to avoid confusion

This commit is contained in:
BobLd
2020-04-02 19:00:09 +01:00
committed by Eliot Jones
parent 04300eb12c
commit 20c4b9594b
3 changed files with 7 additions and 7 deletions

View File

@@ -181,7 +181,7 @@
LineTo(x + width, y); // (x + width) y l
LineTo(x + width, y + height); // (x + width) (y + height) l
LineTo(x, y + height); // x (y + height) l
ClosePath(); // h
CloseSubpath(); // h
IsDrawnAsRectangle = true;
}
@@ -212,7 +212,7 @@
/// <summary>
/// Close the path.
/// </summary>
public void ClosePath()
public void CloseSubpath()
{
if (currentPosition.HasValue)
{

View File

@@ -17,7 +17,7 @@
public static void Run(Type1BuildCharContext context)
{
context.Path.ClosePath();
context.Path.CloseSubpath();
context.Stack.Clear();
}
}

View File

@@ -431,7 +431,7 @@
throw new ArgumentException("CloseSubpath(): first command not Move.");
}
CurrentSubpath.ClosePath();
CurrentSubpath.CloseSubpath();
AddCurrentSubpath();
return point;
}
@@ -458,7 +458,7 @@
if (close)
{
CurrentSubpath.ClosePath();
CurrentSubpath.CloseSubpath();
}
ClosePath();
@@ -475,7 +475,7 @@
if (close)
{
CurrentSubpath.ClosePath();
CurrentSubpath.CloseSubpath();
}
ClosePath();
@@ -493,7 +493,7 @@
if (close)
{
CurrentSubpath.ClosePath();
CurrentSubpath.CloseSubpath();
}
ClosePath();