Skip to content

Commit

Permalink
Fix #11799
Browse files Browse the repository at this point in the history
  • Loading branch information
nokutu committed Aug 24, 2015
1 parent 4b389b8 commit ec4d214
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ private static void run(Thread t) {

/**
* If some part of the current view has not been downloaded, it is downloaded.
*
*/
public static void completeView() {
if (getMode() != SEMIAUTOMATIC && getMode() != MANUAL)
Expand Down Expand Up @@ -144,11 +143,12 @@ public static void getImages(Bounds bounds) {
*/
public static void automaticDownload() {
MapillaryLayer layer = MapillaryLayer.getInstance();
if (Main.map.mapView.getEditLayer() == null)
return;
if (isAreaTooBig()) {
tooBigErrorDialog();
return;
}

if (getMode() != AUTOMATIC)
throw new IllegalStateException("Must be in automatic mode.");
for (Bounds bounds : Main.map.mapView.getEditLayer().data
Expand Down

0 comments on commit ec4d214

Please sign in to comment.