Skip to content

Commit

Permalink
Style fixes for core review (ForNeVeR#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Jan 7, 2020
1 parent 534b09b commit ee4a401
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/WpfMath.Example/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
var testFormula11 = @"1|2|3 \\{ 3|4|5 \\{ 6|7|8 \\{9|0|10}}}";
var testFormula12 = @"1|2|3 \\{ 3|4|5} \\{ 6|7|8}";

this.inputTextBox.Text = testFormula12;
this.inputTextBox.Text = testFormula10;
}

private void Window_Closed(object sender, EventArgs e)
Expand Down
4 changes: 2 additions & 2 deletions src/WpfMath/TexFormulaParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,9 @@ private Tuple<AtomAppendMode, Atom> ProcessCommand(
formula.TextStyle,
environment.CreateChildEnvironment());
source = value.Segment(start, position - start);
return Tuple.Create(
return new Tuple<AtomAppendMode, Atom>(
AtomAppendMode.Add,
(Atom)new FractionAtom(
new FractionAtom(
source,
numeratorFormula.RootAtom,
denominatorFormula.RootAtom,
Expand Down

0 comments on commit ee4a401

Please sign in to comment.