summaryrefslogtreecommitdiff
path: root/Tizen.Maps/Interop
diff options
context:
space:
mode:
authorchanywa <cbible.kim@samsung.com>2017-05-02 16:14:47 +0900
committerchanywa <cbible.kim@samsung.com>2017-05-02 16:16:18 +0900
commit7b855f9a52ae2760677b1766f7eff7180cf855c3 (patch)
tree55474593d7207a173f31d06daa62331dc735e963 /Tizen.Maps/Interop
parentbbb8230a8b74b3d3e5281003c673fd1dcaae0e85 (diff)
downloadmaps-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-xTizen.Maps/Interop/Interop.Area.cs9
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)