From: Angus Leeming Date: Thu, 6 Jun 2002 08:56:21 +0000 (+0000) Subject: Rotate in the same sense as xdvi et al. X-Git-Tag: 1.6.10~19126 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fb29f01377474647111927e29bd7602c89b0d984;hp=3cf03c9edc777f7ebe4b17220c7b5d630c5e6de7;p=lyx.git Rotate in the same sense as xdvi et al. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4343 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/graphics/ChangeLog b/src/graphics/ChangeLog index ace793b7a3..e89606e51b 100644 --- a/src/graphics/ChangeLog +++ b/src/graphics/ChangeLog @@ -1,3 +1,7 @@ +2002-06-06 Angus Leeming + + * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi! + 2002-05-30 Lars Gullik Bjønnes * GraphicsImageXPM.C: SigC to boot::signals changes. diff --git a/src/graphics/GraphicsImageXPM.C b/src/graphics/GraphicsImageXPM.C index de34ab9ba0..642c81c1de 100644 --- a/src/graphics/GraphicsImageXPM.C +++ b/src/graphics/GraphicsImageXPM.C @@ -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);