diff --git a/Topten.RichTextKit/StyleManager.cs b/Topten.RichTextKit/StyleManager.cs index d8b1f72..1c09235 100644 --- a/Topten.RichTextKit/StyleManager.cs +++ b/Topten.RichTextKit/StyleManager.cs @@ -1,4 +1,4 @@ -// RichTextKit +// RichTextKit // Copyright © 2019-2020 Topten Software. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may @@ -301,7 +301,7 @@ public IStyle Update( var rReplacementCharacter = replacementCharacter ?? _currentStyle.ReplacementCharacter; // Format key - var key = $"{rFontFamily}.{rFontSize}.{rFontWeight}.{fontWidth}.{rFontItalic}.{rUnderline}.{rStrikeThrough}.{rLineHeight}.{rTextColor}.{rBackgroundColor}.{rHaloColor}.{rHaloWidth}.{rHaloBlur}.{rLetterSpacing}.{rFontVariant}.{rTextDirection}.{rReplacementCharacter}"; + var key = $"{rFontFamily}.{rFontSize}.{rFontWeight}.{rFontWidth}.{rFontItalic}.{rUnderline}.{rStrikeThrough}.{rLineHeight}.{rTextColor}.{rBackgroundColor}.{rHaloColor}.{rHaloWidth}.{rHaloBlur}.{rLetterSpacing}.{rFontVariant}.{rTextDirection}.{rReplacementCharacter}"; // Look up... if (!_styleMap.TryGetValue(key, out var style))