From c187f323a87fc5ca8b6d2dc980f89c4aaced1c46 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Fri, 9 Jan 2026 07:03:53 +0100 Subject: [PATCH] Update ViewTransform.cs --- MapControl/Shared/ViewTransform.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/MapControl/Shared/ViewTransform.cs b/MapControl/Shared/ViewTransform.cs index d94f597f..b2cfd67c 100644 --- a/MapControl/Shared/ViewTransform.cs +++ b/MapControl/Shared/ViewTransform.cs @@ -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 {