Index: applications/editors/josm/plugins/public_transport_layer/build.xml
===================================================================
--- applications/editors/josm/plugins/public_transport_layer/build.xml	(revision 33446)
+++ applications/editors/josm/plugins/public_transport_layer/build.xml	(revision 33447)
@@ -3,5 +3,5 @@
 
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="11722"/>
+    <property name="plugin.main.version" value="12476"/>
 
     <!-- Configure these properties (replace "..." accordingly).
Index: applications/editors/josm/plugins/public_transport_layer/src/ptl/PublicTransportLayer.java
===================================================================
--- applications/editors/josm/plugins/public_transport_layer/src/ptl/PublicTransportLayer.java	(revision 33446)
+++ applications/editors/josm/plugins/public_transport_layer/src/ptl/PublicTransportLayer.java	(revision 33447)
@@ -32,4 +32,5 @@
 import org.openstreetmap.josm.gui.mappaint.StyleKeys;
 import org.openstreetmap.josm.gui.mappaint.styleelement.TextLabel;
+import org.openstreetmap.josm.gui.mappaint.styleelement.placement.OnLineStrategy;
 import org.openstreetmap.josm.tools.ColorHelper;
 import org.openstreetmap.josm.tools.ImageProvider;
@@ -104,5 +105,5 @@
             way.addNode(nodePair.a);
             way.addNode(nodePair.b);
-            renderer.drawText(way, text);
+            renderer.drawText(way, text, OnLineStrategy.INSTANCE);
         }
     }
