mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Underflow fix
This commit is contained in:
parent
f812cf6eea
commit
81dd512cdb
1 changed files with 1 additions and 1 deletions
|
@ -2836,7 +2836,7 @@ namespace Beefy.widgets
|
||||||
hi = i - 1;
|
hi = i - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hi < GetLineCount())
|
if ((hi >= 0) && (hi < GetLineCount()))
|
||||||
{
|
{
|
||||||
line = (int32)hi;
|
line = (int32)hi;
|
||||||
theChar = idx - mData.mLineStarts[hi];
|
theChar = idx - mData.mLineStarts[hi];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue