summaryrefslogtreecommitdiff
path: root/android/cpp
diff options
context:
space:
mode:
authorKoen Schmeets <k.schmeets@gmail.com>2015-07-24 02:54:55 +0200
committerKoen Schmeets <k.schmeets@gmail.com>2015-07-24 02:54:55 +0200
commit6d3cad7757e3329b42241a8bbd3537a77747f089 (patch)
tree1beec36adb7395e09cef1666e4632781cecf2ef6 /android/cpp
parent93e1ced3bb0f204ff7747bd13e563959be8d35ae (diff)
downloadqtlocation-mapboxgl-6d3cad7757e3329b42241a8bbd3537a77747f089.tar.gz
Fix latLngForPixel bindings for Android
Diffstat (limited to 'android/cpp')
-rw-r--r--android/cpp/jni.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/cpp/jni.cpp b/android/cpp/jni.cpp
index 1e2288c61b..84bbf70985 100644
--- a/android/cpp/jni.cpp
+++ b/android/cpp/jni.cpp
@@ -969,13 +969,13 @@ jobject JNICALL nativeLatLngForPixel(JNIEnv *env, jobject obj, jlong nativeMapVi
assert(nativeMapViewPtr != 0);
NativeMapView *nativeMapView = reinterpret_cast<NativeMapView *>(nativeMapViewPtr);
- jfloat x = env->GetDoubleField(pixel, pointFXId);
+ jfloat x = env->GetFloatField(pixel, pointFXId);
if (env->ExceptionCheck()) {
env->ExceptionDescribe();
return nullptr;
}
- jfloat y = env->GetDoubleField(pixel, pointFYId);
+ jfloat y = env->GetFloatField(pixel, pointFYId);
if (env->ExceptionCheck()) {
env->ExceptionDescribe();
return nullptr;