- Correction of the PdfLine's length formula;

- Moving Line to TextLine
This commit is contained in:
BobLd
2019-05-15 19:44:47 +01:00
parent 97f0f6fe75
commit f4ec425bf0
3 changed files with 3 additions and 2 deletions

View File

@@ -45,7 +45,7 @@
"UglyToad.PdfPig.Content.Page",
"UglyToad.PdfPig.Content.PageSize",
"UglyToad.PdfPig.Content.Word",
"UglyToad.PdfPig.Content.Line",
"UglyToad.PdfPig.Content.TextLine",
"UglyToad.PdfPig.Content.TextDirection",
"UglyToad.PdfPig.Core.TransformationMatrix",
"UglyToad.PdfPig.CrossReference.CrossReferenceTable",

View File

@@ -17,7 +17,8 @@
{
get
{
decimal l = (Point1.X - Point1.X) * (Point1.X - Point1.X) + (Point1.Y - Point1.Y) * (Point1.Y - Point1.Y);
decimal l = (Point1.X - Point2.X) * (Point1.X - Point2.X) +
(Point1.Y - Point2.Y) * (Point1.Y - Point2.Y);
return (decimal)System.Math.Sqrt((double)l);
}
}