From adb246769a9f27377834f36091fc5a64755ff270 Mon Sep 17 00:00:00 2001 From: VahidN Date: Thu, 18 Jan 2018 19:15:27 +0330 Subject: [PATCH] PdfContentByte.ShowTextAligned rotation was ignored --- src/iTextSharp.LGPLv2.Core/iTextSharp.LGPLv2.Core.csproj | 2 +- .../iTextSharp/text/pdf/PdfContentByte.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iTextSharp.LGPLv2.Core/iTextSharp.LGPLv2.Core.csproj b/src/iTextSharp.LGPLv2.Core/iTextSharp.LGPLv2.Core.csproj index a9305c9..86389ab 100644 --- a/src/iTextSharp.LGPLv2.Core/iTextSharp.LGPLv2.Core.csproj +++ b/src/iTextSharp.LGPLv2.Core/iTextSharp.LGPLv2.Core.csproj @@ -1,7 +1,7 @@  iTextSharp.LGPLv2.Core is an unofficial port of the last LGPL version of the iTextSharp (V4.1.6) to .NET Core. - 1.4.0 + 1.4.1 latest Vahid Nasiri net40;netstandard1.3;netstandard2.0 diff --git a/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/PdfContentByte.cs b/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/PdfContentByte.cs index 6b5134e..de51907 100644 --- a/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/PdfContentByte.cs +++ b/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/PdfContentByte.cs @@ -2748,7 +2748,7 @@ private void showTextAligned(int alignment, string text, float x, float y, float { if (State.FontDetails == null) throw new Exception("Font and size must be set before writing any text"); - if (rotation.ApproxNotEqual(0)) + if (rotation.ApproxEquals(0)) { switch (alignment) {