Check for index in range before selecting range in DataGridView.
Replace {sp} with space when svgText elements are deserialized. Added error handling for missing genmac macros. Changed lookup to internal to check for missing genmac macros.
This commit is contained in:
@@ -398,7 +398,6 @@ namespace Sync
|
||||
if (fc.ReadOnly) fc.MoveToDevelopment();
|
||||
}
|
||||
}
|
||||
|
||||
private void listToClipboardToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
dgv.EndEdit();
|
||||
@@ -428,6 +427,7 @@ namespace Sync
|
||||
{
|
||||
dgv.ClearSelection();
|
||||
DataGridView.HitTestInfo info = dgv.HitTest(e.X, e.Y);
|
||||
if (info.RowIndex < 0) return;
|
||||
dgv.CurrentCell = dgv[0, info.RowIndex];
|
||||
dgv.Rows[info.RowIndex].Selected = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user