mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Fix for crash report - check that event label is non-null
This commit is contained in:
@@ -1468,7 +1468,7 @@ namespace renderdocui.Windows
|
||||
|
||||
private void watchRegs_AfterLabelEdit(object sender, LabelEditEventArgs e)
|
||||
{
|
||||
if (e.Label.Length == 0 && e.Item < watchRegs.Items.Count - 1)
|
||||
if ((e.Label == null || e.Label.Length == 0) && e.Item < watchRegs.Items.Count - 1)
|
||||
watchRegs.Items.RemoveAt(e.Item);
|
||||
else if (e.Label != null && e.Label.Length > 0 && e.Item == watchRegs.Items.Count - 1)
|
||||
watchRegs.Items.Add(new ListViewItem(new string[] { "", "", "" }));
|
||||
|
||||
Reference in New Issue
Block a user