diff options
author | rsudev <rsudev@googlemail.com> | 2012-02-12 19:52:49 +0100 |
---|---|---|
committer | rsudev <rsudev@googlemail.com> | 2012-02-12 19:52:49 +0100 |
commit | 1639e1617ad7a77b9b8145942e191b960d05826e (patch) | |
tree | 13af6fc0d6ffb8d6691fc60047a1f1e32db73d5e /mapsforge_patches | |
parent | 802b2bdd8f43b32ea6588cca14d281a40aab0914 (diff) | |
download | cgeo-1639e1617ad7a77b9b8145942e191b960d05826e.zip cgeo-1639e1617ad7a77b9b8145942e191b960d05826e.tar.gz cgeo-1639e1617ad7a77b9b8145942e191b960d05826e.tar.bz2 |
Fixes #790
- applies a patch to mapsforge to fix the hittest order (mapsforge issue
192)
Diffstat (limited to 'mapsforge_patches')
-rw-r--r-- | mapsforge_patches/ItemizedOverlay_issue.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mapsforge_patches/ItemizedOverlay_issue.patch b/mapsforge_patches/ItemizedOverlay_issue.patch new file mode 100644 index 0000000..6ef6f7f --- /dev/null +++ b/mapsforge_patches/ItemizedOverlay_issue.patch @@ -0,0 +1,14 @@ +Index: mapsforge/src/org/mapsforge/android/maps/ItemizedOverlay.java
+===================================================================
+--- mapsforge/src/org/mapsforge/android/maps/ItemizedOverlay.java (revision 1216)
++++ mapsforge/src/org/mapsforge/android/maps/ItemizedOverlay.java (working copy)
+@@ -140,7 +140,8 @@
+
+ synchronized (this.visibleItems) {
+ // iterate over all visible items
+- for (Integer itemIndex : this.visibleItems) {
++ for (int i = this.visibleItems.size() - 1; i >= 0; --i) {
++ Integer itemIndex = this.visibleItems.get(i);
+ // get the current item
+ checkOverlayItem = createItem(itemIndex.intValue());
+ if (checkOverlayItem == null) {
|