Fix for Bug #3535466, well somewhat... removing the rotating of the elements which prevents a lot of other issues.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1924 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-06-18 18:47:48 +00:00
commit 93bb5d992f

View file

@ -624,16 +624,17 @@ namespace Greenshot.Drawing {
break;
case Effects.RotateClockwise:
case Effects.RotateCounterClockwise:
MakeUndoable(new DrawableContainerBoundsChangeMemento(elements.AsIDrawableContainerList()), false);
RotateFlipType rotateFlipType = RotateFlipType.Rotate270FlipNone;
if (effect == Effects.RotateClockwise) {
rotateFlipType = RotateFlipType.Rotate90FlipNone;
}
foreach (DrawableContainer drawableContainer in elements) {
if (drawableContainer.CanRotate) {
drawableContainer.Rotate(rotateFlipType);
}
}
// Do not rotate the drawable containers until this works!
//MakeUndoable(new DrawableContainerBoundsChangeMemento(elements.AsIDrawableContainerList()), false);
//foreach (DrawableContainer drawableContainer in elements) {
// if (drawableContainer.CanRotate) {
// drawableContainer.Rotate(rotateFlipType);
// }
//}
newImage = ImageHelper.RotateFlip((Bitmap)Image, rotateFlipType);
break;
}