Browse Source

Fixed mutating text style for page-related text items

MarcinZiabek 3 years ago
parent
commit
bc8a9e5dc5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      QuestPDF/Fluent/TextExtensions.cs

+ 1 - 1
QuestPDF/Fluent/TextExtensions.cs

@@ -135,7 +135,7 @@ namespace QuestPDF.Fluent
         private TextPageNumberDescriptor PageNumber(Func<IPageContext, int?> pageNumber)
         {
             var style = DefaultStyle.Clone();
-            var descriptor = new TextPageNumberDescriptor(DefaultStyle);
+            var descriptor = new TextPageNumberDescriptor(style);
             
             AddItemToLastTextBlock(new TextBlockPageNumber
             {