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 257919 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jface/viewers/StyledCellLabelProvider.java (-1 / +6 lines)
Lines 75-80 Link Here
75
	private ViewerColumn column;
75
	private ViewerColumn column;
76
	
76
	
77
	private Widget itemOfLastMeasure;
77
	private Widget itemOfLastMeasure;
78
	private Object elementOfLastMeasure;
78
	private int deltaOfLastMeasure;
79
	private int deltaOfLastMeasure;
79
80
80
	/**
81
	/**
Lines 182-187 Link Here
182
	
183
	
183
		this.viewer= null;
184
		this.viewer= null;
184
		this.column= null;
185
		this.column= null;
186
		this.itemOfLastMeasure = null;
187
		this.elementOfLastMeasure = null;
185
		
188
		
186
		super.dispose();
189
		super.dispose();
187
	}
190
	}
Lines 282-287 Link Here
282
		int textWidthDelta = deltaOfLastMeasure = updateTextLayout(layout, cell, applyColors);
285
		int textWidthDelta = deltaOfLastMeasure = updateTextLayout(layout, cell, applyColors);
283
		/* remove-begin if bug 228695 fixed */
286
		/* remove-begin if bug 228695 fixed */
284
		itemOfLastMeasure = event.item;
287
		itemOfLastMeasure = event.item;
288
		elementOfLastMeasure = event.item.getData();
285
		/* remove-end if bug 228695 fixed */
289
		/* remove-end if bug 228695 fixed */
286
290
287
		event.width += textWidthDelta;
291
		event.width += textWidthDelta;
Lines 370-379 Link Here
370
			TextLayout textLayout= getSharedTextLayout(event.display);
374
			TextLayout textLayout= getSharedTextLayout(event.display);
371
375
372
			/* remove-begin if bug 228695 fixed */
376
			/* remove-begin if bug 228695 fixed */
373
			if (event.item != itemOfLastMeasure) {
377
			if (event.item != itemOfLastMeasure || event.item.getData() != elementOfLastMeasure) {
374
				// fLayout has not been configured in 'measure()'
378
				// fLayout has not been configured in 'measure()'
375
				deltaOfLastMeasure = updateTextLayout(textLayout, cell, applyColors);
379
				deltaOfLastMeasure = updateTextLayout(textLayout, cell, applyColors);
376
				itemOfLastMeasure = event.item;
380
				itemOfLastMeasure = event.item;
381
				elementOfLastMeasure = event.item.getData();
377
			}
382
			}
378
			/* remove-end if bug 228695 fixed */
383
			/* remove-end if bug 228695 fixed */
379
			
384
			

Return to bug 257919