diff options
author | Dani Megert | 2013-02-14 12:09:24 +0000 |
---|---|---|
committer | Dani Megert | 2013-02-14 12:09:24 +0000 |
commit | 66876bf10ba99ddf288098c1f607abaa1a378109 (patch) | |
tree | 34ba1ce458c3dd704af4e52e7c7aa0843c0a2346 | |
parent | 19d4513af678a33d6b1c1c0ed9c0cdf1bf59135b (diff) | |
download | eclipse.platform.text-66876bf10ba99ddf288098c1f607abaa1a378109.tar.gz eclipse.platform.text-66876bf10ba99ddf288098c1f607abaa1a378109.tar.xz eclipse.platform.text-66876bf10ba99ddf288098c1f607abaa1a378109.zip |
Fixed bug 400693: [implementation] StringIndexOutOfBoundsException inv20130214-120924I20130224-2000I20130223-1500I20130222-2000I20130220-0922I20130219-1600I20130219-0800I20130214-2011
DefaultInformationControl.setInformation()
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/internal/text/link/contentassist/LineBreakingReader.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/link/contentassist/LineBreakingReader.java b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/link/contentassist/LineBreakingReader.java index ce1f8e13af0..480591cf73b 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/link/contentassist/LineBreakingReader.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/link/contentassist/LineBreakingReader.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 IBM Corporation and others. + * Copyright (c) 2000, 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -106,7 +106,7 @@ public class LineBreakingReader { // need to fit into fMaxWidth int length= word.length(); - while (length >= 0) { + while (length > 0) { length--; word= word.substring(0, length); wordWidth= fGC.textExtent(word).x; |