From 5645f8f0e8edf510446be686812d99c39f588699 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Fri, 9 Dec 2022 19:17:08 +0100 Subject: [PATCH] Update MapPanel.cs --- MapControl/Shared/MapPanel.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MapControl/Shared/MapPanel.cs b/MapControl/Shared/MapPanel.cs index 9ba52b1c..e5855e18 100644 --- a/MapControl/Shared/MapPanel.cs +++ b/MapControl/Shared/MapPanel.cs @@ -185,7 +185,12 @@ namespace MapControl if (boundingBox != null) { - ArrangeElement(element, GetViewRect(boundingBox)); + var viewRect = GetViewRect(boundingBox); + + if (viewRect != null) + { + ArrangeElement(element, viewRect); + } } else {