View | Details | Raw Unified | Return to bug 219838 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/draw2d/text/SimpleTextLayout.java (-2 / +2 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2007 IBM Corporation and others.
2
 * Copyright (c) 2000, 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 55-61 Link Here
55
        fragment.length = result - offset;
55
        fragment.length = result - offset;
56
        fragment.offset = offset;
56
        fragment.offset = offset;
57
        fragment.setWidth(-1);
57
        fragment.setWidth(-1);
58
        flowUtilities.setupFragment(fragment, font, text);
58
        flowUtilities.setupFragment(fragment, font, text.substring(offset, result));
59
        getContext().addToCurrentLine(fragment);
59
        getContext().addToCurrentLine(fragment);
60
        getContext().endLine();
60
        getContext().endLine();
61
        offset = result + delimeterLength;
61
        offset = result + delimeterLength;

Return to bug 219838