### Eclipse Workspace Patch 1.0 #P org.eclipse.draw2d Index: src/org/eclipse/draw2d/text/SimpleTextLayout.java =================================================================== RCS file: /cvsroot/tools/org.eclipse.gef/plugins/org.eclipse.draw2d/src/org/eclipse/draw2d/text/SimpleTextLayout.java,v retrieving revision 1.11 diff -u -r1.11 SimpleTextLayout.java --- src/org/eclipse/draw2d/text/SimpleTextLayout.java 19 Sep 2007 18:08:47 -0000 1.11 +++ src/org/eclipse/draw2d/text/SimpleTextLayout.java 25 Feb 2008 15:50:45 -0000 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2007 IBM Corporation and others. + * Copyright (c) 2000, 2008 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 @@ -55,7 +55,7 @@ fragment.length = result - offset; fragment.offset = offset; fragment.setWidth(-1); - flowUtilities.setupFragment(fragment, font, text); + flowUtilities.setupFragment(fragment, font, text.substring(offset, result)); getContext().addToCurrentLine(fragment); getContext().endLine(); offset = result + delimeterLength;