Index: trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java	(revision 1955)
+++ trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java	(revision 1956)
@@ -7,7 +7,9 @@
 import static org.openstreetmap.josm.tools.I18n.trn;
 
+import java.awt.BasicStroke;
 import java.awt.Color;
 import java.awt.Component;
 import java.awt.Graphics;
+import java.awt.Graphics2D;
 import java.awt.GridBagLayout;
 import java.awt.Point;
@@ -420,4 +422,6 @@
         boolean direction = Main.pref.getBoolean("draw.rawgps.direction");
         // don't draw lines if longer than x meters
+        int lineWidth = Main.pref.getInteger("draw.rawgps.linewidth",0);
+
         int maxLineLength;
         if (this.isLocalFile) {
@@ -448,4 +452,11 @@
         // allows to tweak line coloring for different speed levels.
         int colorTracksTune = Main.pref.getInteger("draw.rawgps.colorTracksTune", 45);
+
+        if(lineWidth != 0)
+        {
+            Graphics2D g2d = (Graphics2D)g;
+            g2d.setStroke(new BasicStroke(lineWidth,BasicStroke.CAP_ROUND,BasicStroke.JOIN_ROUND));
+        }
+
         /****************************************************************
          ********** STEP 2a - CHECK CACHE VALIDITY **********************
