1
0
Fork 0

Dialog fix for impending new C++ feature - reset scratch lon/lat before executing 'nearest'.

This commit is contained in:
jmt 2009-12-09 18:13:03 +00:00
parent e5c87ff77a
commit 98f75bed75

View file

@ -376,6 +376,11 @@
<script>
copySearchArgs();
scratch.getNode("max-results", 1).setIntValue(10);
# ensure scratch pos is invalid, so we use current GPS
# position as the search origin
scratch.getNode("longitude-deg", 1).setDoubleValue(-9999);
scratch.getNode("latitude-deg", 1).setDoubleValue(-9999);
cmd.setValue("nearest")
</script>
</binding>