From 8391bb849a9aae1582d1ac9871a4f49372330838 Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Wed, 6 Aug 2014 21:39:25 +0200 Subject: [PATCH] MapInfo: Fix Data property --- sources/custom/MapInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/custom/MapInfo.cs b/sources/custom/MapInfo.cs index 40841f8..b9fa4a8 100644 --- a/sources/custom/MapInfo.cs +++ b/sources/custom/MapInfo.cs @@ -27,14 +27,14 @@ namespace Gst { partial struct MapInfo { - byte[] Data { + public byte[] Data { get { byte[] data = new byte[Size]; Marshal.Copy (_data, data, 0, (int)Size); return data; } set { - Marshal.Copy (Data, 0, _data, Data.Length); + Marshal.Copy (value, 0, _data, Data.Length); } } -- 2.7.4