GridView: Painting does not crash anymore when there is no column or no row.

[GB.GUI.BASE]
* BUG: GridView: Painting does not crash anymore when there is no column or no row.
This commit is contained in:
Benoît Minisini 2023-04-27 14:20:59 +02:00
parent e2e128ea57
commit 523a862656

View file

@ -462,9 +462,11 @@ Public Sub ScrollArea_Draw()
Else
XO = $hRows.Width - $hView.ScrollX + F
Endif
XX = XO + $hColumns[iCol].X
XX = XO
If iCol >= 0 Then XX += $hColumns[iCol].X
YO = $hColumns.Height - $hView.ScrollY + F
YY = YO + $hRows._GetRowY(iRow)
YY = YO
If iRow >= 0 Then YY += $hRows._GetRowY(iRow)
If $bGrid Then
iGrid = Color.Merge(Color.LightForeground, Color.TextBackground)