diff options
| author | Niraj Modi | 2015-10-19 10:49:37 +0000 |
|---|---|---|
| committer | Niraj Modi | 2015-10-19 10:49:37 +0000 |
| commit | b92b665169259a26da4e7566268a748473b777c4 (patch) | |
| tree | 014a249c1081d5dce01ae25f3d6260cf369ff3dd | |
| parent | 6e99d1730da179bba71d9097aa327fa9e16bea93 (diff) | |
| download | eclipse.platform.swt-b92b665169259a26da4e7566268a748473b777c4.tar.gz eclipse.platform.swt-b92b665169259a26da4e7566268a748473b777c4.tar.xz eclipse.platform.swt-b92b665169259a26da4e7566268a748473b777c4.zip | |
Bug 479980 - StyledText freezes in TextLayout.computeRuns
Change-Id: I8f456d4991e7ab4bbb24fdccc24fbe0127bef3da
Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
| -rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/TextLayout.java | 2 |
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 a71f846867..ee25e39198 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 @@ -333,7 +333,7 @@ void computeRuns (GC gc) { run = allRuns[--i]; start = run.length; } else if (start <= 0 && i == lineStart) { - if (lineWidth > 0 && firstIndice > 0 && firstStart == 0) { + if (lineWidth == wrapWidth && firstIndice > 0) { i = firstIndice - 1; run = allRuns[i]; start = run.length; |
