From: chanywa Date: Tue, 13 Sep 2016 01:36:11 +0000 (+0900) Subject: Fixed to allow setting distance to 0 when searching places X-Git-Tag: submit/tizen/20160928.024352~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9cfda05760244718ef9f75d5f8d44d0b03c9ee39;p=platform%2Fcore%2Flocation%2Fmaps-plugin-here.git Fixed to allow setting distance to 0 when searching places Change-Id: Iec5b20cd2c56a612b86ba3b49e0ce59616ef07da --- diff --git a/maps-plugin-here.changes b/maps-plugin-here.changes index b01a8f1..eaef268 100644 --- a/maps-plugin-here.changes +++ b/maps-plugin-here.changes @@ -1,3 +1,8 @@ +[Version] maps-plugin-here_0.3.7 +[Date] 13 Sep 2016 +[Title] Fixed to allow setting distance to 0 when searching places +[Developer] Seechan Kim + [Version] maps-plugin-here_0.3.6 [Date] 07 Sep 2016 [Title] Added HERE UC app for wearable circle-shaped profile diff --git a/packaging/maps-plugin-here.spec b/packaging/maps-plugin-here.spec index 803f6ae..ede4f99 100644 --- a/packaging/maps-plugin-here.spec +++ b/packaging/maps-plugin-here.spec @@ -1,6 +1,6 @@ Name: maps-plugin-here Summary: Tizen HERE Maps Plug-in Library -Version: 0.3.6 +Version: 0.3.7 Release: 1 Group: Location/Libraries License: Apache-2.0 and HERE diff --git a/src/here_api.cpp b/src/here_api.cpp index 631991c..7087592 100644 --- a/src/here_api.cpp +++ b/src/here_api.cpp @@ -330,7 +330,7 @@ int HerePluginSearchPlace(maps_coordinates_h hPos, int nDistance, void *pUserData, int *nReqId) { /* checking parmaters */ - if (!hPos || !HereUtils::IsValid(*(maps_coordinates_s*)hPos) || nDistance <= 0) + if (!hPos || !HereUtils::IsValid(*(maps_coordinates_s*)hPos) || nDistance < 0) return HERE_ERROR_INVALID_PARAMETER; if (!hFilter || !pCbFunc || !nReqId)