提交 84575699 编写于 作者: S Serge Rider

#10349 Hex editor init fix

上级 8ef8ab3f
......@@ -159,7 +159,7 @@ public class DisplayedContent implements StyledTextContent {
public void setText(String text)
{
data.setLength(0);
data.append(text.substring(0, Math.min(text.length(), linesTimesColumns)));
data.append(text, 0, Math.min(text.length(), Math.max(0, linesTimesColumns)));
TextChangedEvent changedEvent = new TextChangedEvent(this);
for (TextChangeListener textListener : textListeners) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册