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