mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
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:
parent
a50022c20d
commit
93bb5d992f
1 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue