Skip to content

Commit

Permalink
Merge pull request #2536 from cwensley/curtis/dataobject-and-clipboar…
Browse files Browse the repository at this point in the history
…d-updates

Wpf/WinForms: Fallback to getting raw stream if converting the value to byte data doesn't work
  • Loading branch information
cwensley committed Jul 31, 2023
2 parents 3833e28 + 57e2fa5 commit 51eb856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Eto.Wpf/Forms/DataObjectHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ object GetObjectData(string type)
catch
{
}

return null;

}
Expand All @@ -329,7 +329,7 @@ public byte[] GetData(string type)
}
}

return GetAsData(GetObjectData(type));
return GetAsData(GetObjectData(type)) ?? GetAsData(GetStream(type));
}
return null;
}
Expand Down

0 comments on commit 51eb856

Please sign in to comment.