+2002-05-03 Angus Leeming <a.leeming@ic.ac.uk>
+
+ * xformsGImage.C (rotate): work-around xforms bug when rotating by
+ 270 degs.
+
2002-05-02 Herbert Voss <voss@perce.de>
* FormBibtex.C (apply): a change from a style to an empty one
// The angle passed to flimage_rotate is the angle in one-tenth of a
// degree units.
- flimage_rotate(image_, params.angle * 10, FLIMAGE_SUBPIXEL);
+
+ // Work around xforms bug when params.angle == 270
+ // the 'InternalError: bad special angle' error.
+ // This bug fix is not needed in xforms 1.0 and greater.
+ if (params.angle == 270) {
+ flimage_rotate(image_, 900, FLIMAGE_SUBPIXEL);
+ flimage_rotate(image_, 1800, FLIMAGE_SUBPIXEL);
+ } else {
+ flimage_rotate(image_, params.angle * 10, FLIMAGE_SUBPIXEL);
+ }
}