From 1d1d969b5a076224aaa7c396e85df0e61d747f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zi=C4=85bek?= Date: Mon, 1 Mar 2021 17:06:27 +0100 Subject: [PATCH] 2021.3.1 --- QuestPDF/Fluent/ElementExtensions.cs | 3 +++ QuestPDF/QuestPDF.csproj | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/QuestPDF/Fluent/ElementExtensions.cs b/QuestPDF/Fluent/ElementExtensions.cs index ae66721..0cc0b6e 100644 --- a/QuestPDF/Fluent/ElementExtensions.cs +++ b/QuestPDF/Fluent/ElementExtensions.cs @@ -98,7 +98,10 @@ namespace QuestPDF.Fluent style ??= TextStyle.Default; if (element is Alignment alignment) + { + style = style.Clone(); style.Alignment = alignment.Horizontal; + } element.Element(new Text() { diff --git a/QuestPDF/QuestPDF.csproj b/QuestPDF/QuestPDF.csproj index c6f67de..6fa377a 100644 --- a/QuestPDF/QuestPDF.csproj +++ b/QuestPDF/QuestPDF.csproj @@ -4,7 +4,7 @@ MarcinZiabek CodeFlint QuestPDF - 2021.3.0 + 2021.3.1 QuestPDF is an open-source, modern and battle-tested library that can help you with generating PDF documents by offering friendly, discoverable and predictable C# fluent API. Generating images functionality, ShowIf element, fixed mutating TextStyle 8