Browse Source

Fixed: table initialization process

MarcinZiabek 3 years ago
parent
commit
e3ff2960e1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      QuestPDF/Elements/Table/Table.cs

+ 1 - 1
QuestPDF/Elements/Table/Table.cs

@@ -45,7 +45,7 @@ namespace QuestPDF.Elements.Table
         
         
         private void Initialize()
         private void Initialize()
         {
         {
-            if (!CacheInitialized)
+            if (CacheInitialized)
                 return;
                 return;
 
 
             StartingRowsCount = Cells.Select(x => x.Row).DefaultIfEmpty(0).Max();
             StartingRowsCount = Cells.Select(x => x.Row).DefaultIfEmpty(0).Max();