Index: applications/editors/josm/plugins/buildings_tools/build.xml
===================================================================
--- applications/editors/josm/plugins/buildings_tools/build.xml	(revision 25467)
+++ applications/editors/josm/plugins/buildings_tools/build.xml	(revision 25469)
@@ -33,5 +33,5 @@
 	<property name="commit.message" value="update (23630 was committed together with the code which is not right)" />
 	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
+	<property name="plugin.main.version" value="3922" />
 
 
Index: applications/editors/josm/plugins/buildings_tools/src/buildings_tools/Building.java
===================================================================
--- applications/editors/josm/plugins/buildings_tools/src/buildings_tools/Building.java	(revision 25467)
+++ applications/editors/josm/plugins/buildings_tools/src/buildings_tools/Building.java	(revision 25469)
@@ -28,5 +28,4 @@
 
 class Building {
-    private static final double eqlen = 40075004; // length of equator in metres
     private final EastNorth[] en = new EastNorth[4];
 
@@ -83,5 +82,5 @@
 
     private void updMetrics() {
-        meter = 2 * Math.PI / (Math.cos(Math.toRadians(eastNorth2latlon(en[0]).lat())) * eqlen);
+        meter = 1 / Math.cos(Math.toRadians(eastNorth2latlon(en[0]).lat()));
         len = 0;
     }
Index: applications/editors/josm/plugins/importvec/build.xml
===================================================================
--- applications/editors/josm/plugins/importvec/build.xml	(revision 25467)
+++ applications/editors/josm/plugins/importvec/build.xml	(revision 25469)
@@ -33,5 +33,5 @@
     <property name="commit.message" value="Commit message" />
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="3835" />
+    <property name="plugin.main.version" value="3922" />
 
 
Index: applications/editors/josm/plugins/importvec/src/org/openstreetmap/josm/plugins/importvec/ImportVectorAction.java
===================================================================
--- applications/editors/josm/plugins/importvec/src/org/openstreetmap/josm/plugins/importvec/ImportVectorAction.java	(revision 25467)
+++ applications/editors/josm/plugins/importvec/src/org/openstreetmap/josm/plugins/importvec/ImportVectorAction.java	(revision 25469)
@@ -149,5 +149,4 @@
         }
 
-        private static final double eqlen = 40075004; // length of equator in metres
         Mercator projection = new Mercator();
         EastNorth center;
@@ -218,5 +217,5 @@
                         break;
                     case PathIterator.SEG_CLOSE:
-                        if (currentway.firstNode().getCoor().equals(nodes.getLast().getCoor())) {
+                        if (currentway.firstNode().getCoor().equalsEpsilon(nodes.getLast().getCoor())) {
                             currentway.removeNode(nodes.removeLast());
                         }
@@ -247,6 +246,5 @@
         protected void realRun() throws SAXException, IOException, OsmTransferException {
             LatLon center = Main.proj.eastNorth2latlon(Main.map.mapView.getCenter());
-            scale = 2 * Math.PI / (Math.cos(Math.toRadians(center.lat())) * eqlen)
-                    * Settings.getScaleNumerator() / Settings.getScaleDivisor();
+            scale = Settings.getScaleNumerator() / Settings.getScaleDivisor() / Math.cos(Math.toRadians(center.lat()));
             this.center = projection.latlon2eastNorth(center);
             try {
@@ -257,4 +255,5 @@
                     rdr.setContentHandler(loader);
                     rdr.setEntityResolver(new EntityResolver() {
+                                @Override
                                 public InputSource resolveEntity(String publicId, String systemId) {
                                     //Ignore all DTDs
