Index: trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/LineElement.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/LineElement.java	(revision 17518)
+++ trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/LineElement.java	(revision 17519)
@@ -218,6 +218,6 @@
             return false;
         final LineElement other = (LineElement) obj;
-        return offset == other.offset &&
-               realWidth == other.realWidth &&
+        return Float.compare(offset, other.offset) == 0 &&
+               Float.compare(realWidth, other.realWidth) == 0 &&
                wayDirectionArrows == other.wayDirectionArrows &&
                Objects.equals(line, other.line) &&
