From 6d6bd791fb39f1f9e4c12d60dd539b489707002e Mon Sep 17 00:00:00 2001 From: Xu Date: Mon, 23 Dec 2024 22:23:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84=E6=95=88=E6=9E=9C=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Magpie/ScalingModeEffectItem.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Magpie/ScalingModeEffectItem.h b/src/Magpie/ScalingModeEffectItem.h index a1eae3e5..87c93d09 100644 --- a/src/Magpie/ScalingModeEffectItem.h +++ b/src/Magpie/ScalingModeEffectItem.h @@ -67,7 +67,9 @@ struct ScalingModeEffectItem : ScalingModeEffectItemT, void ScalingPixelsY(double value); winrt::Magpie::EffectParametersViewModel Parameters() const noexcept { - return *_parametersViewModel; + return _parametersViewModel + ? winrt::Magpie::EffectParametersViewModel(*_parametersViewModel) + : winrt::Magpie::EffectParametersViewModel{ nullptr }; } void Remove();