Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.WPF/LayerCache.cs')
-rw-r--r--UVtools.WPF/LayerCache.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/UVtools.WPF/LayerCache.cs b/UVtools.WPF/LayerCache.cs
index 4c5f1b8..b8c84bc 100644
--- a/UVtools.WPF/LayerCache.cs
+++ b/UVtools.WPF/LayerCache.cs
@@ -36,6 +36,7 @@ namespace UVtools.WPF
Clear();
_layer = value;
Image = _layer.LayerMat;
+ if (Image is null) return;
ImageBgr = new Mat();
CvInvoke.CvtColor(Image, ImageBgr, ColorConversion.Gray2Bgr);