Skip to content

Commit 78a4b72

Browse files
committed
Fixed an issue where pasted images didn't have an extension
1 parent 53d6911 commit 78a4b72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ClipboardCanvas/CanavsPasteModels/ImagePasteModel.cs

+4
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ protected override async Task<SafeWrapperResult> SetDataFromDataPackage(DataPack
9797
if (uri)
9898
{
9999
customName = Path.GetFileName(uri.Result.LocalPath);
100+
if (!Path.HasExtension(customName))
101+
{
102+
customName = $"{customName}.png";
103+
}
100104
}
101105

102106
if (!bitmap)

0 commit comments

Comments
 (0)