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

View File

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

View File

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