summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2006-01-05 18:37:07 +0000
committerFelipe Heidrich <fheidric>2006-01-05 18:37:07 +0000
commit41379afd447e143f3a057620b8db69d0717b2e63 (patch)
tree54c6acfd1e677525044ed8c1b467da9bd3f44589
parent4f678e641fb7252eb0ebf85afb9e3d8e723d04d1 (diff)
downloadeclipse.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.java4
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;