Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 212319
Collapse All | Expand All

(-)src/org/eclipse/draw2d/text/InlineFlow.java (-6 / +1 lines)
Lines 101-112 Link Here
101
			where.y = -box.getAscentWithBorder();
101
			where.y = -box.getAscentWithBorder();
102
			where.height = box.getDescentWithBorder() - where.y;
102
			where.height = box.getDescentWithBorder() - where.y;
103
			where.y += box.getBaseline();
103
			where.y += box.getBaseline();
104
			if (i == 0) {
105
				where.x += fb.getLeftMargin();
106
				where.width -= fb.getLeftMargin();
107
			}
108
			if (i == frags.size() - 1)
109
				where.width -= fb.getRightMargin();
110
			sides = 0;
104
			sides = 0;
111
			if (i == 0)
105
			if (i == 0)
112
				sides = SWT.LEAD;
106
				sides = SWT.LEAD;
Lines 114-119 Link Here
114
				sides |= SWT.TRAIL;
108
				sides |= SWT.TRAIL;
115
			fb.paint(this, graphics, where, sides);
109
			fb.paint(this, graphics, where, sides);
116
		}
110
		}
111
		graphics.restoreState();
117
	}
112
	}
118
	if (selectionStart != -1)
113
	if (selectionStart != -1)
119
		paintSelection(graphics);
114
		paintSelection(graphics);

Return to bug 212319