From 6a445c23236c746a0e4b6efdaf7643e6e76ddae2 Mon Sep 17 00:00:00 2001 From: mrbcmorris Date: Wed, 16 Jan 2019 07:52:32 -0500 Subject: [PATCH 001/192] Now handling exceptions when trying to load an invalid .png file - Fixes #26 --- MaterialDesignExtensions/Controllers/BitmapImageHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MaterialDesignExtensions/Controllers/BitmapImageHelper.cs b/MaterialDesignExtensions/Controllers/BitmapImageHelper.cs index ba70f722..6bfac860 100644 --- a/MaterialDesignExtensions/Controllers/BitmapImageHelper.cs +++ b/MaterialDesignExtensions/Controllers/BitmapImageHelper.cs @@ -93,7 +93,7 @@ public static BitmapImage LoadImage(string imageFilename, int targetWidth = 40, } catch (Exception exc) { - if (exc is IOException || exc is UnauthorizedAccessException || exc is PathTooLongException) + if (exc is IOException || exc is UnauthorizedAccessException || exc is PathTooLongException || exc is NotSupportedException) { return null; } From 2645052b716ab462a35c652f85d55eebe401588d Mon Sep 17 00:00:00 2001 From: Philipp Spiegel Date: Wed, 16 Jan 2019 21:30:03 +0100 Subject: [PATCH 002/192] updated release notes --- ReleaseNotes.md | 2 ++ docs/snippets/releasenotes.html | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 13b59c50..3085e015 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -90,3 +90,5 @@ ### vX.X.X (upcoming release) #### Features * New control `StepTitleHeaderControl` to use bindings in a XAML defined step +#### Fixes +* Handle broken image files in `BitmapImageHelper` diff --git a/docs/snippets/releasenotes.html b/docs/snippets/releasenotes.html index 83826bdc..2c0e35a4 100644 --- a/docs/snippets/releasenotes.html +++ b/docs/snippets/releasenotes.html @@ -5,6 +5,10 @@

Features

+

Fixes

+

v2.4.0

Features