[FIX] ArchiveViewerFix-di

marcus at ira.uka.de marcus at ira.uka.de
Sun Jan 4 19:51:43 UTC 2004


from preamble:

"Change Set:		ArchiveViewerFix-di
Date:			4 January 2004
Author:			Dan Ingalls

md: just reposting as a normal changeset.

Subject:		[BUG] [FIX] ArchiveViewer-createButtonBar is fragile
Author:		Dan Ingalls
Date Posted: 11 December 2003
Comments:	
The current method for ArchiveViewer-createButtonBar uses StrikeFont
allInstances to find a narrow font.  It then assumes that the one it
found is accessible through the normally registered textstyles.

If your image contains a local font --held in , eg, a class variable --
then this method will fail if it chooses that font, since it cannot be
accessed through the normal registry.

The attached fix enumerates registered fonts rather than using
allInstances.  It should be included wherever ArchiveViewer is
maintained, as well as with Scamper, since its installation calls this
method (that's where I got bitten)."!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ArchiveViewerFix-di.cs.gz
Type: application/octet-stream
Size: 1459 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040104/52758f8a/ArchiveViewerFix-di.cs.obj


More information about the Squeak-dev mailing list