[fa.laser-lovers] imagen bug

laser-lovers@uw-beaver (laser-lovers) (10/01/84)

From: ihnp4!uofm-cv!cosivax!dbo@uw-beaver.arpa

There seems to be a bug in the Imagen program dviimp.  The conversion
factor fixptrsuconv is calculated as
	fixptrsuconv = ((double) 2.54 / 72.27) * ( 1.0e5 / 2.0e20 );
I think that they mean to use 1 * 2^20, not 2 * 10^20 at the end of
the expression.  As it is, on our vax, fixptrsuconv == 0.0, causing
characters to all have widths of 0 (causing problems if you rely on
advancing by the width of the character just output).  I replaced
the 2.0e20 with (1L << 20) and it seemed to work fine.

	Douglas Orr
	uofm-cv!cosivax!dbo