From d428298837f30b12a4484866de04ee18d13c6737 Mon Sep 17 00:00:00 2001 From: FoggyFinder Date: Sat, 2 Nov 2019 23:00:10 +0300 Subject: [PATCH] don't create a separate run for a placeholder --- CSharpMath/Display/Text/AttributedStrings/AttributedGlyphRun.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CSharpMath/Display/Text/AttributedStrings/AttributedGlyphRun.cs b/CSharpMath/Display/Text/AttributedStrings/AttributedGlyphRun.cs index 9a9c0e840..21f0bf9a1 100644 --- a/CSharpMath/Display/Text/AttributedStrings/AttributedGlyphRun.cs +++ b/CSharpMath/Display/Text/AttributedStrings/AttributedGlyphRun.cs @@ -34,6 +34,6 @@ public AttributedGlyphRun(string text, IEnumerable glyphs, TFont font, b public static class AttributedGlyphRunExtensions { public static bool AttributesMatch(this AttributedGlyphRun run1, AttributedGlyphRun run2) where TFont : IFont => - !(run1 is null || run2 is null) && run1.Placeholder == run2.Placeholder && EqualityComparer.Default.Equals(run1.Font, run2.Font); + !(run1 is null || run2 is null) && EqualityComparer.Default.Equals(run1.Font, run2.Font); } }