fetch device font before querying
authorClaus Gittinger <cg@exept.de>
Sat, 19 Apr 1997 12:23:56 +0200
changeset 366 34e1870524f1
parent 365 4228b1451bc9
child 367 cff1a140978f
fetch device font before querying
MCLEntry.st
MultiColListEntry.st
--- a/MCLEntry.st	Fri Apr 18 18:16:46 1997 +0200
+++ b/MCLEntry.st	Sat Apr 19 12:23:56 1997 +0200
@@ -432,7 +432,9 @@
     xPos := x.
     prevString := ''.
 
-    y0 := y - (aGC font on:aGC device) ascent.
+    aGC font:(aGC font on:aGC device).
+
+    y0 := y - aGC font ascent.
 
     strings keysAndValuesDo:[:index :subString |
         |item|
@@ -467,7 +469,7 @@
         ]
     ].
 
-    "Modified: 17.4.1997 / 12:53:04 / cg"
+    "Modified: 19.4.1997 / 09:54:56 / cg"
 ! !
 
 !MultiColListEntry methodsFor:'queries'!
@@ -534,5 +536,5 @@
 !MultiColListEntry class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/Attic/MCLEntry.st,v 1.22 1997-04-17 11:21:25 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/Attic/MCLEntry.st,v 1.23 1997-04-19 10:23:56 cg Exp $'
 ! !
--- a/MultiColListEntry.st	Fri Apr 18 18:16:46 1997 +0200
+++ b/MultiColListEntry.st	Sat Apr 19 12:23:56 1997 +0200
@@ -432,7 +432,9 @@
     xPos := x.
     prevString := ''.
 
-    y0 := y - (aGC font on:aGC device) ascent.
+    aGC font:(aGC font on:aGC device).
+
+    y0 := y - aGC font ascent.
 
     strings keysAndValuesDo:[:index :subString |
         |item|
@@ -467,7 +469,7 @@
         ]
     ].
 
-    "Modified: 17.4.1997 / 12:53:04 / cg"
+    "Modified: 19.4.1997 / 09:54:56 / cg"
 ! !
 
 !MultiColListEntry methodsFor:'queries'!
@@ -534,5 +536,5 @@
 !MultiColListEntry class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/MultiColListEntry.st,v 1.22 1997-04-17 11:21:25 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/MultiColListEntry.st,v 1.23 1997-04-19 10:23:56 cg Exp $'
 ! !