Prepare version 8.2.

This commit is contained in:
ClemensFischer 2023-01-25 14:29:27 +01:00
parent 29ffdc4420
commit 641b4354a0
23 changed files with 33 additions and 32 deletions

View file

@ -32,12 +32,13 @@ namespace MapControl
private static void DataPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
{
// Check if Data is actually a new Geometry.
var data = (Geometry)e.NewValue;
// Check if data is actually a new Geometry.
//
if (e.NewValue != null && !ReferenceEquals(e.NewValue, e.OldValue))
if (data != null && !ReferenceEquals(data, e.OldValue))
{
var path = (MapPath)obj;
var data = (Geometry)e.NewValue;
if (data.IsFrozen)
{