Fix latLngForPixel bindings for Android

This commit is contained in:
Koen Schmeets
2015-07-24 02:54:55 +02:00
parent 93e1ced3bb
commit 6d3cad7757

View File

@@ -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;