diff options
author | Felipe Heidrich <fheidric> | 2006-01-05 18:37:07 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2006-01-05 18:37:07 +0000 |
commit | 41379afd447e143f3a057620b8db69d0717b2e63 (patch) | |
tree | 54c6acfd1e677525044ed8c1b467da9bd3f44589 | |
parent | 4f678e641fb7252eb0ebf85afb9e3d8e723d04d1 (diff) | |
download | eclipse.platform.swt-41379afd447e143f3a057620b8db69d0717b2e63.tar.gz eclipse.platform.swt-41379afd447e143f3a057620b8db69d0717b2e63.tar.xz eclipse.platform.swt-41379afd447e143f3a057620b8db69d0717b2e63.zip |
122736
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java index d3143390e9..351a06e0fe 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java @@ -1071,7 +1071,9 @@ void textChanging(TextChangingEvent event) { int[] newHeights = new int[lineCount + delta + GROW]; System.arraycopy(lineHeight, 0, newHeights, 0, lineCount); lineHeight = newHeights; - if (lines != null) { + } + if (lines != null) { + if (lineCount + delta > lines.length) { LineInfo[] newLines = new LineInfo[lineCount + delta + GROW]; System.arraycopy(lines, 0, newLines, 0, lineCount); lines = newLines; |