mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-04 22:32:19 +00:00
Rotate in the same sense as xdvi et al.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@4344 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
aa0f8a61dd
commit
d0c49fdb18
@ -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-04-28 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* GraphicsImageXPM.C: understand convert's use of "opaque"
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user