Fixed rotating elements which are just rectangles, like the enum-label.

This commit is contained in:
RKrom 2014-05-31 23:38:12 +02:00
commit c19564b6e3
3 changed files with 15 additions and 5 deletions

View file

@ -135,11 +135,7 @@ namespace Greenshot.Drawing {
bool modified = false;
Invalidate();
foreach (var dc in this) {
Point[] location = { dc.Location };
matrix.TransformPoints(location);
dc.Left = location[0].X;
dc.Top = location[0].Y;
dc.Transform(matrix);
modified = true;
}
// Invalidate after