BoundingBox now immutable

This commit is contained in:
ClemensFischer 2024-04-11 14:57:54 +02:00
parent dc9932a0cf
commit 2685792758
8 changed files with 61 additions and 105 deletions

View file

@ -71,7 +71,7 @@ namespace MapControl
{
MapRect mapRect = null;
if (boundingBox.HasValidBounds)
if (boundingBox.South < boundingBox.North && boundingBox.West < boundingBox.East)
{
var p1 = LocationToMap(new Location(boundingBox.South, boundingBox.West));
var p2 = LocationToMap(new Location(boundingBox.North, boundingBox.East));