Fix missing contour lines

This commit is contained in:
Victor Shcherb 2013-02-11 00:52:11 +01:00
parent 3f0fd03fda
commit 227c9ff45e

View file

@ -396,7 +396,7 @@ public class DownloadIndexActivity extends OsmandExpandableListActivity {
cachedSRTMFiles = new ArrayList<SrtmIndexItem>();
List<RegionCountry> countries = RegionRegistry.getRegionRegistry().getCountries();
for (RegionCountry rc : countries) {
if (rc.tiles.size() > 35) {
if (rc.tiles.size() > 35 && rc.getSubRegions().size() > 0) {
for (RegionCountry ch : rc.getSubRegions()) {
cachedSRTMFiles.add(new SrtmIndexItem(ch, indexFileNames));
}