Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2013-02-14 12:09:24 +0000
committerDani Megert2013-02-14 12:09:24 +0000
commit66876bf10ba99ddf288098c1f607abaa1a378109 (patch)
tree34ba1ce458c3dd704af4e52e7c7aa0843c0a2346
parent19d4513af678a33d6b1c1c0ed9c0cdf1bf59135b (diff)
downloadeclipse.platform.text-66876bf10ba99ddf288098c1f607abaa1a378109.tar.gz
eclipse.platform.text-66876bf10ba99ddf288098c1f607abaa1a378109.tar.xz
eclipse.platform.text-66876bf10ba99ddf288098c1f607abaa1a378109.zip
DefaultInformationControl.setInformation()
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/internal/text/link/contentassist/LineBreakingReader.java4
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;

Back to the top