forked from organicmaps/organicmaps
Merge pull request #2706 from Zverik/llfix-m
[editor][android] Fix swapped lat-lon for notes (master branch)
This commit is contained in:
commit
557f87f57b
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue