ide: Fixed ide crashing on Find, F3 & file click #694

git-svn-id: svn://ultimatepp.org/upp/trunk@6966 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-02-28 18:36:20 +00:00
commit f4d1f46422
2 changed files with 5 additions and 4 deletions

View file

@ -80,6 +80,7 @@ void LineEdit::Paint0(Draw& w) {
Point sc = sb;
int ll = min(line.GetCount(), sz.cy / fsz.cy + sc.y + 1);
int y = 0;
sc.y = minmax(sc.y, 0, line.GetCount() - 1);
cpos = GetPos(sc.y);
cline = sc.y;
sell -= cpos;