Skip to content

Commit

Permalink
fix: 修复解析失败的效果导致的崩溃
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue committed Dec 23, 2024
1 parent 63df4f9 commit 6d6bd79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Magpie/ScalingModeEffectItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ struct ScalingModeEffectItem : ScalingModeEffectItemT<ScalingModeEffectItem>,
void ScalingPixelsY(double value);

winrt::Magpie::EffectParametersViewModel Parameters() const noexcept {
return *_parametersViewModel;
return _parametersViewModel
? winrt::Magpie::EffectParametersViewModel(*_parametersViewModel)
: winrt::Magpie::EffectParametersViewModel{ nullptr };
}

void Remove();
Expand Down

0 comments on commit 6d6bd79

Please sign in to comment.