Commit b267a34e 熊本熊kumamon

修正 GraphicalOverlayComponent在所属控件 this.OnPaint(null) 时会抛出例外。

1 个父辈 4dc6b032
...@@ -79,6 +79,8 @@ namespace HZH_Controls.Controls ...@@ -79,6 +79,8 @@ namespace HZH_Controls.Controls
private void Control_Paint(object sender, PaintEventArgs e) private void Control_Paint(object sender, PaintEventArgs e)
{ {
if (e == null) return;
// As each control on the form is repainted, this handler is called. // As each control on the form is repainted, this handler is called.
Control control = sender as Control; Control control = sender as Control;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!