From 058afa7ae93fafdc1c7b538be2aa103ebf5877b5 Mon Sep 17 00:00:00 2001 From: Rafaat Mir Date: Tue, 17 Apr 2018 23:03:23 -0700 Subject: [PATCH] Summation two cyrillic symbols (#129) --- src/WpfMath/RowAtom.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/WpfMath/RowAtom.cs b/src/WpfMath/RowAtom.cs index e102855e..f6a57cb5 100644 --- a/src/WpfMath/RowAtom.cs +++ b/src/WpfMath/RowAtom.cs @@ -1,4 +1,4 @@ -using System.Collections; +using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; @@ -114,7 +114,8 @@ public override Box CreateBox(TexEnvironment environment) // Check if atom is part of ligature or should be kerned. var kern = 0d; - if (hasNextAtom && curAtom.GetRightType() == TexAtomType.Ordinary && curAtom.IsCharSymbol) + if ((hasNextAtom && curAtom.GetRightType() == TexAtomType.Ordinary && curAtom.IsCharSymbol) && + !(this.Elements[i].GetType() == typeof(CharAtom) && ((CharAtom)this.Elements[i]).TextStyle == "text")) { if (nextAtom is CharSymbol cs && ligatureKernChangeSet[(int)nextAtom.GetLeftType()]) {