fixed line numbering in script editors

master
richard 2009-11-25 19:14:55 -08:00
parent 617ca79ed0
commit edcd835feb
2 changed files with 5 additions and 1 deletions

View File

@ -1180,6 +1180,10 @@ void LLTextBase::reflow(S32 start_index)
++seg_iter;
seg_offset = 0;
}
if (force_newline)
{
line_count++;
}
}
// calculate visible region for diplaying text

View File

@ -2158,7 +2158,7 @@ void LLTextEditor::drawLineNumbers()
return;
}
S32 cursor_line = getLineNumFromDocIndex(mCursorPos);
S32 cursor_line = mLineInfoList[getLineNumFromDocIndex(mCursorPos)].mLineNum;
if (mShowLineNumbers)
{