Index: /trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java	(revision 11841)
+++ /trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java	(revision 11842)
@@ -1190,9 +1190,9 @@
     }
 
-    private void paintTileText(TileSet ts, Tile tile, Graphics g, MapView mv, int zoom, Tile t) {
+    private void paintTileText(Tile tile, Graphics g, MapView mv) {
         if (tile == null) {
             return;
         }
-        Point2D p = coordinateConverter.getPixelForTile(t);
+        Point2D p = coordinateConverter.getPixelForTile(tile);
         int fontHeight = g.getFontMetrics().getHeight();
         int x = (int) p.getX();
@@ -1223,6 +1223,6 @@
         int yCursor = -1;
         if (Main.isDebugEnabled()) {
-            if (yCursor < t.getYtile()) {
-                if (Math.abs(t.getYtile() % 32) == 31) {
+            if (yCursor < tile.getYtile()) {
+                if (Math.abs(tile.getYtile() % 32) == 31) {
                     g.fillRect(0, y - 1, mv.getWidth(), 3);
                 } else {
@@ -1232,6 +1232,6 @@
             }
             // This draws the vertical lines for the entire column. Only draw them for the top tile in the column.
-            if (xCursor < t.getXtile()) {
-                if (t.getXtile() % 32 == 0) {
+            if (xCursor < tile.getXtile()) {
+                if (tile.getXtile() % 32 == 0) {
                     // level 7 tile boundary
                     g.fillRect(x - 1, 0, 3, mv.getHeight());
@@ -1610,5 +1610,5 @@
         // The current zoom tileset should have all of its tiles due to the loadAllTiles(), unless it to tooLarge()
         for (Tile t : ts.allExistingTiles()) {
-            this.paintTileText(ts, t, g, mv, displayZoomLevel, t);
+            this.paintTileText(t, g, mv);
         }
 
