Merge pull request #2706 from Zverik/llfix-m

[editor][android] Fix swapped lat-lon for notes (master branch)
This commit is contained in:
Dmitry Yunitsky 2016-04-04 12:12:14 +03:00
commit 557f87f57b

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"