mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-06-20 19:30:31 +12:00
#53, version 0.9.2.30
This commit is contained in:
parent
fac14cf016
commit
1cb0aaaa49
|
@ -273,7 +273,7 @@ namespace SystemTrayMenu.UserInterface
|
|||
RowData trigger = (RowData)Tag;
|
||||
DataGridView dgv = menuPredecessor.GetDataGridView();
|
||||
int distanceToDgvTop = 0;
|
||||
if (dgv.Rows.Count > 0)
|
||||
if (dgv.Rows.Count > trigger.RowIndex)
|
||||
{
|
||||
Rectangle cellRectangle = dgv.GetCellDisplayRectangle(
|
||||
0, trigger.RowIndex, false);
|
||||
|
|
Loading…
Reference in a new issue