(SetPreviewImage): format can be null.

This commit is contained in:
morkt 2022-04-29 15:08:17 +04:00
parent 6a4a9a3c46
commit 6b0c48e30f

View File

@ -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 ?? "?"));
}
});
}