]> git.lyx.org Git - lyx.git/commitdiff
Rotate in the same sense as xdvi et al.
authorAngus Leeming <leeming@lyx.org>
Thu, 6 Jun 2002 08:56:21 +0000 (08:56 +0000)
committerAngus Leeming <leeming@lyx.org>
Thu, 6 Jun 2002 08:56:21 +0000 (08:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4343 a592a061-630c-0410-9148-cb99ea01b6c8

src/graphics/ChangeLog
src/graphics/GraphicsImageXPM.C

index ace793b7a37b4cc7aa457e5f114e03d1ec1b26c6..e89606e51b97e0eb48ac8a9699b161573f4211f3 100644 (file)
@@ -1,3 +1,7 @@
+2002-06-06  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
+
 2002-05-30  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
        * GraphicsImageXPM.C: SigC to boot::signals changes.
index de34ab9ba0bdfc03b6c61003026a85c200eb4b77..642c81c1de8a550cce0044a166f85bffb584263f 100644 (file)
@@ -282,7 +282,8 @@ void GImageXPM::rotate(GParams const & params)
        // Ascertain the bounding box of the rotated image
        // Rotate about the bottom-left corner
        static double const pi = 3.14159265358979323846;
-       double const angle = double(params.angle) * pi / 180.0;
+       // The minus sign is needed to rotate in the same sense as xdvi et al.
+       double const angle = -double(params.angle) * pi / 180.0;
        double const cos_a = cos(angle);
        double const sin_a = sin(angle);