Skip to content

Commit

Permalink
Fix crash when double clicking left most column (row header). Fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
tslater2006 committed Apr 2, 2019
1 parent b8a82ca commit fcf3d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DMS Viewer/DataViewer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void DrawDataTable()

private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex >= 0)
if (e.RowIndex >= 0 && e.ColumnIndex >= 0)
{
var content = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
new LongDataViewer(content).ShowDialog(this);
Expand Down

0 comments on commit fcf3d12

Please sign in to comment.