Skip to content

Commit

Permalink
Minor Bugfixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mourthag committed Oct 11, 2015
1 parent d9242eb commit 7689570
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions UI/Components/Note.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public void DrawHorizontal(Graphics g, LiveSplitState state, float height, Regio
public void DrawVertical(Graphics g, LiveSplitState state, float width, Region clipRegion)
{
VerticalHeight = state.LayoutSettings.TextFont.GetHeight(g);
MinimumWidth = g.MeasureString(Text, state.LayoutSettings.TextFont).Width;
DrawBackgorund(g, width, VerticalHeight);
var textBrush = new SolidBrush(txtColor);
g.DrawString(Text, state.LayoutSettings.TextFont, textBrush, new PointF(0, 0));
Expand Down
1 change: 1 addition & 0 deletions UI/Components/NotesComponentSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ private void button1_Click(object sender, EventArgs e)
{
FilePath = loadNotesDialog.FileName;
FilePathChanged = true;
filePathTxtBox.Text = FilePath;
}
}
catch (Exception ex)
Expand Down
2 changes: 2 additions & 0 deletions Utility/TxtHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public static List<string> readFile(string Path)
result.Add( currentLine);
}

inputStream.Close();

return result;
}
}
Expand Down

0 comments on commit 7689570

Please sign in to comment.