浏览代码

Fix empty paragraph layout issue.

/main
Yuncong Zhang 5 年前
当前提交
6eddd447
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 5
      Runtime/ui/txt/paragraph.cs

5
Runtime/ui/txt/paragraph.cs


// Compute max(NumberOfWords(line) for line in lines), to determine the size of word buffers
int maxWordCount = this._computeMaxWordCount();
// Nothing to layout, if no visible character at all
if (maxWordCount == 0) {
return;
}
_wordsBuffer = new Range<int>[maxWordCount];
_wordsBuffer = new Range<int>[maxWordCount < 4 ? 4 : maxWordCount];
}
// Iterate through line ranges

正在加载...
取消
保存