Skip to content

Commit

Permalink
Summation two cyrillic symbols (ForNeVeR#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneAmir committed Apr 18, 2018
1 parent 380507c commit 058afa7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/WpfMath/RowAtom.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
Expand Down Expand Up @@ -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()])
{
Expand Down

0 comments on commit 058afa7

Please sign in to comment.