diff options
Diffstat (limited to 'UVtools.WPF/LayerCache.cs')
-rw-r--r-- | UVtools.WPF/LayerCache.cs | 1 |
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); |