summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2010-04-26 16:17:02 +0000
committerFelipe Heidrich <fheidric>2010-04-26 16:17:02 +0000
commitd2026179ae396d094d63adf974927e48ad96318b (patch)
tree410b7e32aa7679343470f8c089c06f5ecd69ac57 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics
parent47d0546ba3731de37d78b0000e37af058a2168b0 (diff)
downloadeclipse.platform.swt-d2026179ae396d094d63adf974927e48ad96318b.tar.gz
eclipse.platform.swt-d2026179ae396d094d63adf974927e48ad96318b.tar.xz
eclipse.platform.swt-d2026179ae396d094d63adf974927e48ad96318b.zip
Bug 283503 - Eclipse crashes at org.eclipse.swt.internal.win32.OS.ScriptGetLogicalWidths
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java
index 10f6a040ea..99b12e00cf 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java
@@ -277,7 +277,7 @@ void computeRuns (GC gc) {
}
}
}
- if (wrapWidth != -1 && lineWidth + run.width > wrapWidth && !run.tab) {
+ if (wrapWidth != -1 && lineWidth + run.width > wrapWidth && !run.tab && !run.lineBreak) {
int start = 0;
int[] piDx = new int[run.length];
if (run.style != null && run.style.metrics != null) {