From 06e29b7771c239c5b1f7db0966c82c315f1e9556 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Mon, 1 Sep 2025 20:20:21 +0200 Subject: [PATCH] Update GeoImage.WPF.cs --- MapControl/WPF/GeoImage.WPF.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MapControl/WPF/GeoImage.WPF.cs b/MapControl/WPF/GeoImage.WPF.cs index d9a43ff1..d77ddcb4 100644 --- a/MapControl/WPF/GeoImage.WPF.cs +++ b/MapControl/WPF/GeoImage.WPF.cs @@ -11,6 +11,8 @@ namespace MapControl { private static Task LoadGeoTiff(string sourcePath) { + return Task.Run(LoadGeoTiff); + GeoBitmap LoadGeoTiff() { BitmapSource bitmap; @@ -56,8 +58,6 @@ namespace MapControl return new GeoBitmap(bitmap, transform, projection); } - - return Task.Run(LoadGeoTiff); } private static BitmapSource ConvertTransparentPixel(BitmapSource source, int transparentPixel)