[editor][android] Fix swapped lat-lon for notes

This commit is contained in:
Ilya Zverev 2016-04-04 11:38:28 +03:00
parent a94e2d2f4d
commit 36eadc8bca

View file

@ -6,6 +6,7 @@
#include "base/assert.hpp"
#include "base/logging.hpp"
#include "base/string_utils.hpp"
#include "geometry/mercator.hpp"
#include "indexer/cuisines.hpp"
#include "indexer/editable_map_object.hpp"
#include "indexer/osm_editor.hpp"
@ -352,7 +353,7 @@ Java_com_mapswithme_maps_editor_Editor_nativeGetMwmVersion(JNIEnv * env, jclass
JNIEXPORT void JNICALL
Java_com_mapswithme_maps_editor_Editor_nativeCreateNote(JNIEnv * env, jclass clazz, jdouble lat, jdouble lon, jstring text)
{
Editor::Instance().CreateNote(m2::PointD(lat, lon), jni::ToNativeString(env, text));
Editor::Instance().CreateNote(MercatorBounds::FromLatLon(lat, lon), jni::ToNativeString(env, text));
}
} // extern "C"