Index: trunk/src/org/openstreetmap/josm/tools/ImageOverlay.java
===================================================================
--- trunk/src/org/openstreetmap/josm/tools/ImageOverlay.java	(revision 8721)
+++ trunk/src/org/openstreetmap/josm/tools/ImageOverlay.java	(revision 8722)
@@ -11,5 +11,5 @@
  */
 public class ImageOverlay {
-    /** the image ressource to use as overlay */
+    /** the image resource to use as overlay */
     public ImageProvider image;
     /** offset of the image from left border, values between 0 and 1 */
@@ -26,5 +26,5 @@
      * is the result of the difference between left/right and top/bottom.
      *
-     * @param image imager provider for the overlay icon
+     * @param image image provider for the overlay icon
      * @param offsetLeft offset of the image from left border, values between 0 and 1, -1 for auto-calculation
      * @param offsetTop offset of the image from top border, values between 0 and 1, -1 for auto-calculation
@@ -46,5 +46,5 @@
      * Right and bottom values are set to 1.
      *
-     * @param image imager provider for the overlay icon
+     * @param image image provider for the overlay icon
      * @see #ImageOverlay(ImageProvider, double, double, double, double)
      * @since 8095
@@ -75,5 +75,5 @@
         }
         if (offsetTop > 0 && offsetBottom > 0) {
-            width = (int) (h*(offsetBottom-offsetTop));
+            height = (int) (h*(offsetBottom-offsetTop));
         }
         ImageIcon overlay;
