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; break;
case Effects.RotateClockwise: case Effects.RotateClockwise:
case Effects.RotateCounterClockwise: case Effects.RotateCounterClockwise:
MakeUndoable(new DrawableContainerBoundsChangeMemento(elements.AsIDrawableContainerList()), false);
RotateFlipType rotateFlipType = RotateFlipType.Rotate270FlipNone; RotateFlipType rotateFlipType = RotateFlipType.Rotate270FlipNone;
if (effect == Effects.RotateClockwise) { if (effect == Effects.RotateClockwise) {
rotateFlipType = RotateFlipType.Rotate90FlipNone; rotateFlipType = RotateFlipType.Rotate90FlipNone;
} }
foreach (DrawableContainer drawableContainer in elements) { // Do not rotate the drawable containers until this works!
if (drawableContainer.CanRotate) { //MakeUndoable(new DrawableContainerBoundsChangeMemento(elements.AsIDrawableContainerList()), false);
drawableContainer.Rotate(rotateFlipType); //foreach (DrawableContainer drawableContainer in elements) {
} // if (drawableContainer.CanRotate) {
} // drawableContainer.Rotate(rotateFlipType);
// }
//}
newImage = ImageHelper.RotateFlip((Bitmap)Image, rotateFlipType); newImage = ImageHelper.RotateFlip((Bitmap)Image, rotateFlipType);
break; break;
} }