From 93bb5d992f64e9876b2b42f0accd95e58ba91149 Mon Sep 17 00:00:00 2001 From: RKrom Date: Mon, 18 Jun 2012 18:47:48 +0000 Subject: [PATCH] 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 --- Greenshot/Drawing/Surface.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Greenshot/Drawing/Surface.cs b/Greenshot/Drawing/Surface.cs index f4600f92d..a0a8d8c68 100644 --- a/Greenshot/Drawing/Surface.cs +++ b/Greenshot/Drawing/Surface.cs @@ -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; }