Skip to content

Commit

Permalink
Inverted block
Browse files Browse the repository at this point in the history
  • Loading branch information
Lehonti Ramos authored and ForNeVeR committed Sep 30, 2023
1 parent 5b9e0ed commit ef8d647
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/XamlMath.Shared/Atoms/BigOperatorAtom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,7 @@ internal BoxForBaseAtom AdjustedToMaxWidth(double maxWidth) =>
}
private BoxForBaseAtom CreateBoxForBaseAtom(TexEnvironment environment)
{
if (BaseAtom is not SymbolAtom symbolAtom || BaseAtom.Type != TexAtomType.BigOperator)
{
Box baseBox = new HorizontalBox(BaseAtom == null ? StrutBox.Empty : BaseAtom.CreateBox(environment));
double delta = 0;
return new(baseBox, delta);
}
else
if (BaseAtom is SymbolAtom symbolAtom && BaseAtom.Type == TexAtomType.BigOperator)
{
var texFont = environment.MathFont;
var style = environment.Style;
Expand All @@ -148,6 +142,12 @@ private BoxForBaseAtom CreateBoxForBaseAtom(TexEnvironment environment)
baseBox.Add(new StrutBox(delta, 0, 0, 0));
return new(baseBox, delta);
}
else
{
Box baseBox = new HorizontalBox(BaseAtom == null ? StrutBox.Empty : BaseAtom.CreateBox(environment));
double delta = 0;
return new(baseBox, delta);
}

}
}

0 comments on commit ef8d647

Please sign in to comment.