Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/01/14 14:14:26 (10 years ago)
Author:
gkronber
Message:

#2076: minor changes to the code while reviewing / testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionTreeChart.cs

    r10885 r11065  
    385385    #region export pgf/tikz
    386386    private void exportLatexToolStripMenuItem_Click(object sender, EventArgs e) {
     387      var t = Tree;
     388      if (t == null) return;
    387389      using (var dialog = new SaveFileDialog { Filter = "Tex (*.tex)|*.tex" }) {
    388390        if (dialog.ShowDialog() != DialogResult.OK) return;
    389391        string filename = dialog.FileName.ToLower();
    390392        var formatter = new SymbolicExpressionTreeLatexFormatter();
    391         File.WriteAllText(filename, formatter.Format(Tree));
     393        File.WriteAllText(filename, formatter.Format(t));
    392394      }
    393395    }
Note: See TracChangeset for help on using the changeset viewer.