There was an error while loading. Please reload this page.
2 parents 8cfc5e2 + bda7b40 commit f7aae9cCopy full SHA for f7aae9c
1 file changed
CADability.Forms/CadFrame.cs
@@ -135,18 +135,9 @@ GeoObjectList IUIService.GetDataPresent(object data)
135
{
136
if (data is IDataObject idata)
137
138
- byte[] bytes = idata.GetData(typeof(byte[])) as byte[];
139
- if (bytes != null)
+ if (idata.GetDataPresent(System.Windows.Forms.DataFormats.Serializable))
140
141
- try
142
- {
143
- using (MemoryStream ms = new MemoryStream(bytes))
144
145
- JsonSerialize js = new JsonSerialize();
146
- return js.FromStream(ms) as GeoObjectList;
147
- }
148
149
- catch { }
+ return idata.GetData(System.Windows.Forms.DataFormats.Serializable) as GeoObjectList;
150
}
151
152
return null;
0 commit comments