mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue