diff --git a/QuestPDF/Infrastructure/TextStyleManager.cs b/QuestPDF/Infrastructure/TextStyleManager.cs index 9e46a73..0d30c84 100644 --- a/QuestPDF/Infrastructure/TextStyleManager.cs +++ b/QuestPDF/Infrastructure/TextStyleManager.cs @@ -32,6 +32,9 @@ namespace QuestPDF.Infrastructure private static TextStyle MutateStyle(TextStyle origin, TextStyleProperty property, object value, bool overrideValue = true) { + if (overrideValue && value == null) + return origin; + if (property == TextStyleProperty.Color) { if (!overrideValue && origin.Color != null)