#53, version 0.9.2.30

This commit is contained in:
Markus Hofknecht 2020-05-14 16:48:16 +02:00
parent fac14cf016
commit 1cb0aaaa49

View file

@ -273,7 +273,7 @@ namespace SystemTrayMenu.UserInterface
RowData trigger = (RowData)Tag; RowData trigger = (RowData)Tag;
DataGridView dgv = menuPredecessor.GetDataGridView(); DataGridView dgv = menuPredecessor.GetDataGridView();
int distanceToDgvTop = 0; int distanceToDgvTop = 0;
if (dgv.Rows.Count > 0) if (dgv.Rows.Count > trigger.RowIndex)
{ {
Rectangle cellRectangle = dgv.GetCellDisplayRectangle( Rectangle cellRectangle = dgv.GetCellDisplayRectangle(
0, trigger.RowIndex, false); 0, trigger.RowIndex, false);