Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2004-05-04 05:37:10 +0000
committerCarolyn MacLeod2004-05-04 05:37:10 +0000
commit40b1ad7df0ca037b7141c4b8674859f29149ccbc (patch)
tree940feaa9486fda74b1637dc1f56a91fb55ddc72f /examples
parentc14c96ae6237658f54aa808a962ae53888b886b1 (diff)
downloadeclipse.platform.swt-40b1ad7df0ca037b7141c4b8674859f29149ccbc.tar.gz
eclipse.platform.swt-40b1ad7df0ca037b7141c4b8674859f29149ccbc.tar.xz
eclipse.platform.swt-40b1ad7df0ca037b7141c4b8674859f29149ccbc.zip
fix for 46824
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CanvasTab.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CanvasTab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CanvasTab.java
index afd79d0597..b7a21e3c26 100644
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CanvasTab.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CanvasTab.java
@@ -125,9 +125,7 @@ class CanvasTab extends Tab {
}
Point size = canvas.getSize ();
gc.drawArc(cx + 1, cy + 1, size.x - 2, size.y - 2, 0, 360);
- String counter = new Integer(paintCount).toString();
- Point extent = gc.stringExtent(counter);
- gc.drawString(counter, cx + (size.x - extent.x) / 2, cy + (size.y - extent.y) / 2);
+ gc.drawRectangle(cx + (size.x - 10) / 2, cy + (size.y - 10) / 2, 10, 10);
}
});
canvas.addControlListener(new ControlAdapter() {

Back to the top