Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVsevolod Kukol <sevoku@microsoft.com>2021-07-28 15:02:27 +0300
committerGitHub <noreply@github.com>2021-07-28 15:02:27 +0300
commit139c2467a3541c27732628ec53eadefc9df04a2a (patch)
tree24e4254cc1702f8d498a37bf4527eae89afbb588
parent7203c2c4198f4b29a2fa8c1afc526113941c8370 (diff)
parentdbc51caee042b4b822318e115cb9d13c2a184397 (diff)
Merge pull request #1064 from mono/dev/sevoku/fix-customimage-copy
Copy image properties when copying CustomImage
-rw-r--r--Xwt.XamMac/Xwt.Mac/ImageHandler.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xwt.XamMac/Xwt.Mac/ImageHandler.cs b/Xwt.XamMac/Xwt.Mac/ImageHandler.cs
index 953689fc..a11f86d3 100644
--- a/Xwt.XamMac/Xwt.Mac/ImageHandler.cs
+++ b/Xwt.XamMac/Xwt.Mac/ImageHandler.cs
@@ -361,12 +361,12 @@ namespace Xwt.Mac
public CustomImage Clone ()
{
- return new CustomImage (actx, drawCallback);
+ return new CustomImage(actx, drawCallback) { Image = Image, Size = Size };
}
public override NSObject Copy (NSZone zone)
{
- return new CustomImage (actx, drawCallback);
+ return new CustomImage (actx, drawCallback) { Image = Image, Size = Size };
}
}
}