Index: applications/editors/josm/plugins/agpifoj/src/org/openstreetmap/josm/plugins/agpifoj/AgpifojDialog.java
===================================================================
--- applications/editors/josm/plugins/agpifoj/src/org/openstreetmap/josm/plugins/agpifoj/AgpifojDialog.java	(revision 15960)
+++ applications/editors/josm/plugins/agpifoj/src/org/openstreetmap/josm/plugins/agpifoj/AgpifojDialog.java	(revision 16290)
@@ -124,5 +124,5 @@
             centerView = ((JToggleButton) e.getSource()).isSelected();
             if (centerView && currentEntry != null && currentEntry.pos != null) {
-                Main.map.mapView.zoomTo(currentEntry.pos, Main.map.mapView.getScale());
+                Main.map.mapView.zoomTo(currentEntry.pos);
             }
 
@@ -153,5 +153,5 @@
 
             if (centerView && Main.map != null && entry != null && entry.pos != null) {
-                Main.map.mapView.zoomTo(entry.pos, Main.map.mapView.getScale());
+                Main.map.mapView.zoomTo(entry.pos);
             }
 
Index: applications/editors/josm/plugins/agpifoj/src/org/openstreetmap/josm/plugins/agpifoj/CorrelateGpxWithImages.java
===================================================================
--- applications/editors/josm/plugins/agpifoj/src/org/openstreetmap/josm/plugins/agpifoj/CorrelateGpxWithImages.java	(revision 15960)
+++ applications/editors/josm/plugins/agpifoj/src/org/openstreetmap/josm/plugins/agpifoj/CorrelateGpxWithImages.java	(revision 16290)
@@ -623,5 +623,5 @@
                 BoundingXYVisitor bbox = new BoundingXYVisitor();
                 l.visitBoundingBox(bbox);
-                if (bbox.min != null && bbox.max != null) {
+                if (bbox.getBounds() != null) {
                     boundingBoxedLayerFound = true;
                     break;
