Skip to content
This repository was archived by the owner on Feb 19, 2021. It is now read-only.

Commit f3aa539

Browse files
author
Declan Vong
committed
Fixed text rendering bug
1 parent 2b3fde0 commit f3aa539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MarqueeLabel.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ private void Shift()
6666

6767
protected override void OnTextChanged(EventArgs e)
6868
{
69-
base.OnTextChanged(e);
7069
if (!this.IsDisposed) //We get issues with the graphics object when we're disposing, since it calls this TextChange method
7170
{
7271
stringWidth = this.CreateGraphics().MeasureString(Text, Font).Width;
@@ -75,6 +74,7 @@ protected override void OnTextChanged(EventArgs e)
7574
else
7675
scrolling = false;
7776
}
77+
base.OnTextChanged(e);
7878
}
7979

8080
protected override void OnPaint(PaintEventArgs e)

0 commit comments

Comments
 (0)