Browse Source

TextBlock: Reduced memory usage

Marcin Ziąbek 1 year ago
parent
commit
9183ef53a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/QuestPDF/Elements/Text/TextBlock.cs

+ 1 - 1
Source/QuestPDF/Elements/Text/TextBlock.cs

@@ -526,7 +526,7 @@ namespace QuestPDF.Elements.Text
         
         #region Handling Of Text Blocks With Only With Space
         
-        private ConcurrentDictionary<int, float> ParagraphContainingOnlyWhiteSpaceHeightCache { get; } = new(); // key: TextStyle.Id
+        private static ConcurrentDictionary<int, float> ParagraphContainingOnlyWhiteSpaceHeightCache { get; } = new(); // key: TextStyle.Id
         
         private bool CheckIfContainsOnlyWhiteSpace()
         {