Skip to content

Commit

Permalink
fix: Timeline.axaml.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
yuto-trd committed Sep 24, 2024
1 parent d282cde commit 0813c0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Beutl/Views/Timeline.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,11 @@ private async void PasteCore()
bmp.Save(imageFile, Graphics.EncodedImageFormat.Png);
}

var sp = new SourceImageOperator { Source = { Value = BitmapSource.Open(imageFile) } };
var sp = new SourceImageOperator();
if (sp.Value is not null)
{
sp.Value.Source = BitmapSource.Open(imageFile);
}
var newElement = new Element
{
Start = ViewModel.ClickedFrame,
Expand Down

0 comments on commit 0813c0c

Please sign in to comment.