From 3310f58912d8c073bcfaabe2b74292b51a943341 Mon Sep 17 00:00:00 2001 From: ClemensF Date: Tue, 4 Dec 2018 00:38:54 +0100 Subject: [PATCH] Version 4.12. --- MapControl/Shared/CenteredBoundingBox.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/MapControl/Shared/CenteredBoundingBox.cs b/MapControl/Shared/CenteredBoundingBox.cs index 08881af3..36bb24a7 100644 --- a/MapControl/Shared/CenteredBoundingBox.cs +++ b/MapControl/Shared/CenteredBoundingBox.cs @@ -6,21 +6,17 @@ namespace MapControl { public class CenteredBoundingBox : BoundingBox { - private readonly Location center; private readonly double width; private readonly double height; public CenteredBoundingBox(Location center, double width, double height) { - this.center = center; + Center = center; this.width = width; this.height = height; } - public Location Center - { - get { return center; } - } + public Location Center { get; private set; } public override double Width { @@ -34,7 +30,7 @@ namespace MapControl public override BoundingBox Clone() { - return new CenteredBoundingBox(center, width, height); + return new CenteredBoundingBox(Center, Width, Height); } } }