Fixed a bug where double-clicking the header in the UDMF custom properties tab would result in a crash

This commit is contained in:
boris_i 2012-04-14 14:02:32 +00:00
parent 62dd9d9121
commit 7b65a2e80d

View file

@ -358,7 +358,7 @@ namespace CodeImp.DoomBuilder.Controls
FieldsEditorRow frow = null;
// Anything selected
if(fieldslist.SelectedRows.Count > 0)
if(fieldslist.SelectedRows.Count > 0 && e.RowIndex > -1)
{
// Get the row
DataGridViewRow row = fieldslist.Rows[e.RowIndex];