Skip to content

Commit

Permalink
Merge branch 'dev' into feat/adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue committed Dec 23, 2024
2 parents e3ce791 + 6d6bd79 commit cc4c03d
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 cc4c03d

Please sign in to comment.