Index: /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfilePanel.java
===================================================================
--- /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfilePanel.java	(revision 29951)
+++ /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfilePanel.java	(revision 29952)
@@ -72,4 +72,7 @@
 		addComponentListener(this);
 		addMouseMotionListener(this);		
+		
+		Font lFont = getFont().deriveFont(9.0f);
+		setFont(lFont);
 	}
 
@@ -186,7 +189,4 @@
 		isPainting = true;
 		
-		Font oldFont = getFont();
-		Font lFont = getFont().deriveFont(9.0f);
-		setFont(lFont);
 		try {
 			super.paint(g);
@@ -219,5 +219,4 @@
 			}
 		} finally {
-			setFont(oldFont);
 			isPainting = false;
 		}
@@ -548,6 +547,3 @@
 		return super.getToolTipText();
 	}
-	
-	
-
 }
