From 6b0c48e30fff9069b12092bd2333c82e19e4bfd6 Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 29 Apr 2022 15:08:17 +0400 Subject: [PATCH] (SetPreviewImage): format can be null. --- GUI/ImagePreview.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/ImagePreview.cs b/GUI/ImagePreview.cs index 0c5b227a..43ddf683 100644 --- a/GUI/ImagePreview.cs +++ b/GUI/ImagePreview.cs @@ -271,7 +271,7 @@ namespace GARbro.GUI ImageCanvas.Source = bitmap; ApplyDownScaleSetting(); SetStatusText (string.Format (guiStrings.MsgImageSize, bitmap.PixelWidth, - bitmap.PixelHeight, bitmap.Format.BitsPerPixel, format.Tag)); + bitmap.PixelHeight, bitmap.Format.BitsPerPixel, format?.Tag ?? "?")); } }); }