mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Fixed rotating elements which are just rectangles, like the enum-label.
This commit is contained in:
parent
9d668f5226
commit
c19564b6e3
3 changed files with 15 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue