mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-12 19:50:16 +01:00
Update ViewTransform.cs
This commit is contained in:
parent
6fd637af1e
commit
c187f323a8
|
|
@ -125,6 +125,18 @@ namespace MapControl
|
|||
y = y * transform.M22 + transform.OffsetY;
|
||||
width *= transform.M11;
|
||||
height *= transform.M22;
|
||||
|
||||
if (width < 0d)
|
||||
{
|
||||
width = -width;
|
||||
x -= width;
|
||||
}
|
||||
|
||||
if (height < 0d)
|
||||
{
|
||||
height = -height;
|
||||
y -= height;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue