Index: /applications/editors/josm/plugins/wmsplugin/webkit-image.cpp
===================================================================
--- /applications/editors/josm/plugins/wmsplugin/webkit-image.cpp	(revision 11989)
+++ /applications/editors/josm/plugins/wmsplugin/webkit-image.cpp	(revision 11990)
@@ -34,4 +34,6 @@
       QImage im = QPixmap::grabWidget(view).toImage();
       QRgb white = QColor(255,255,255).rgb();
+      /* sometimes the white is shifted one bit */
+      QRgb white2 = QColor(254,254,254).rgb();
 
       /* didn't find a way to reduce image directly, so we scan for white background */
@@ -44,5 +46,5 @@
         {
           QRgb p = im.pixel(x, y);
-          if(p != white && p)
+          if(p != white && p != white2 & p)
             iswhite = false;
         }
@@ -56,5 +58,5 @@
         {
           QRgb p = im.pixel(x, y);
-          if(p != white && p)
+          if(p != white && p != white2 && p)
             iswhite = false;
         }
