*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Wed, 04 Sep 2002 23:09:08 +0200
changeset 3717 8ab117634269
parent 3716 d7739a80eac8
child 3718 6818104e175e
*** empty log message ***
GraphicsContext.st
--- a/GraphicsContext.st	Wed Sep 04 20:59:24 2002 +0200
+++ b/GraphicsContext.st	Wed Sep 04 23:09:08 2002 +0200
@@ -1788,12 +1788,13 @@
         ^ self displayString:aString x:x y:y
     ].
 
+    font := font onDevice:device.
     ascent := font ascent.
+
     aString isString ifTrue:[
         "/ a real string;
         "/ do it in a monochrome form (for speed)
 
-        font := font onDevice:device.
         w := font widthOf:aString .
         h := font height.
         descent := h - ascent.
@@ -2238,6 +2239,6 @@
 !GraphicsContext class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/GraphicsContext.st,v 1.93 2002-07-24 17:59:46 mb Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/GraphicsContext.st,v 1.94 2002-09-04 21:09:08 cg Exp $'
 ! !
 GraphicsContext initialize!