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();