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 313984
Collapse All | Expand All

(-)src/org/eclipse/draw2d/Figure.java (-8 / +2 lines)
Lines 1156-1169 Link Here
1156
				if (clippingStrategy != null) {
1156
				if (clippingStrategy != null) {
1157
					clipping = clippingStrategy.getClip(child);
1157
					clipping = clippingStrategy.getClip(child);
1158
				} else {
1158
				} else {
1159
					// default clipping behavior is to clip at
1159
					// default clipping behaviour is to clip at bounds
1160
					// client area or bounds (dependent on whether there
1160
					clipping = new Rectangle[] { child.getBounds() };
1161
					// is an opaque border)
1162
					boolean optimizeClip = getBorder() == null
1163
							|| getBorder().isOpaque();
1164
					clipping = new Rectangle[] { optimizeClip ? child
1165
							.getBounds() : child.getBounds().getIntersection(
1166
							getClientArea(PRIVATE_RECT)) };
1167
				}
1161
				}
1168
				// child may now paint inside the clipping areas
1162
				// child may now paint inside the clipping areas
1169
				for (int j = 0; j < clipping.length; j++) {
1163
				for (int j = 0; j < clipping.length; j++) {

Return to bug 313984