diff options
author | chanywa <cbible.kim@samsung.com> | 2017-05-02 16:14:47 +0900 |
---|---|---|
committer | chanywa <cbible.kim@samsung.com> | 2017-05-02 16:16:18 +0900 |
commit | 7b855f9a52ae2760677b1766f7eff7180cf855c3 (patch) | |
tree | 55474593d7207a173f31d06daa62331dc735e963 /Tizen.Maps/Interop | |
parent | bbb8230a8b74b3d3e5281003c673fd1dcaae0e85 (diff) | |
download | maps-7b855f9a52ae2760677b1766f7eff7180cf855c3.tar.gz maps-7b855f9a52ae2760677b1766f7eff7180cf855c3.tar.bz2 maps-7b855f9a52ae2760677b1766f7eff7180cf855c3.zip |
Fix to prepare that parameters of Area are nullsubmit/tizen/20170502.075333accepted/tizen/unified/20170502.165737
Change-Id: I801e3cf5bfdb2d463783b39786802d9f818b7ec2
Diffstat (limited to 'Tizen.Maps/Interop')
-rwxr-xr-x | Tizen.Maps/Interop/Interop.Area.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Tizen.Maps/Interop/Interop.Area.cs b/Tizen.Maps/Interop/Interop.Area.cs index bd05164..cf56832 100755 --- a/Tizen.Maps/Interop/Interop.Area.cs +++ b/Tizen.Maps/Interop/Interop.Area.cs @@ -39,12 +39,15 @@ internal static partial class Interop internal AreaHandle(CoordinatesHandle topLeft, CoordinatesHandle bottomRight) : this(IntPtr.Zero, true) { - CreateRectangle(topLeft, bottomRight, out handle).ThrowIfFailed("Failed to create native handle"); + IntPtr _topLeft = (topLeft != null ? topLeft : IntPtr.Zero); + IntPtr _bottomRight = (bottomRight != null ? bottomRight : IntPtr.Zero); + CreateRectangle(_topLeft, _bottomRight, out handle).ThrowIfFailed("Failed to create native handle"); } - internal AreaHandle(CoordinatesHandle topLeft, double radius) : this(IntPtr.Zero, true) + internal AreaHandle(CoordinatesHandle center, double radius) : this(IntPtr.Zero, true) { - CreateCircle(topLeft, radius, out handle).ThrowIfFailed("Failed to create native handle"); + IntPtr _center = (center != null ? center : IntPtr.Zero); + CreateCircle(_center, radius, out handle).ThrowIfFailed("Failed to create native handle"); } internal static AreaHandle CloneFrom(IntPtr nativeHandle) |