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:
parent
e2e128ea57
commit
523a862656
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue