Index: /trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java	(revision 3813)
+++ /trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java	(revision 3814)
@@ -44,15 +44,15 @@
             IconElemStyle style;
             if ((style = icons.get("n" + key + "=" + val)) != null) {
-                if (icon == null || style.priority > icon.priority) {
+                if (icon == null || style.priority >= icon.priority) {
                     icon = style;
                 }
             }
             if ((style = icons.get("b" + key + "=" + OsmUtils.getNamedOsmBoolean(val))) != null) {
-                if (icon == null || style.priority > icon.priority) {
+                if (icon == null || style.priority >= icon.priority) {
                     icon = style;
                 }
             }
             if ((style = icons.get("x" + key)) != null) {
-                if (icon == null || style.priority > icon.priority) {
+                if (icon == null || style.priority >= icon.priority) {
                     icon = style;
                 }
@@ -60,5 +60,5 @@
         }
         for (IconElemStyle s : iconsList) {
-            if ((icon == null || s.priority > icon.priority) && s.check(primitive)) {
+            if ((icon == null || s.priority >= icon.priority) && s.check(primitive)) {
                 icon = s;
             }
@@ -75,8 +75,8 @@
             LineElemStyle styleLine;
             String idx = "n" + key + "=" + val;
-            if ((styleArea = areas.get(idx)) != null && (area == null || styleArea.priority > area.priority) && (!noclosed || !styleArea.closed)) {
+            if ((styleArea = areas.get(idx)) != null && (area == null || styleArea.priority >= area.priority) && (!noclosed || !styleArea.closed)) {
                 area = styleArea;
             }
-            if ((styleLine = lines.get(idx)) != null && (line == null || styleLine.priority > line.priority)) {
+            if ((styleLine = lines.get(idx)) != null && (line == null || styleLine.priority >= line.priority)) {
                 line = styleLine;
                 lineIdx = idx;
@@ -86,8 +86,8 @@
             }
             idx = "b" + key + "=" + OsmUtils.getNamedOsmBoolean(val);
-            if ((styleArea = areas.get(idx)) != null && (area == null || styleArea.priority > area.priority) && (!noclosed || !styleArea.closed)) {
+            if ((styleArea = areas.get(idx)) != null && (area == null || styleArea.priority >= area.priority) && (!noclosed || !styleArea.closed)) {
                 area = styleArea;
             }
-            if ((styleLine = lines.get(idx)) != null && (line == null || styleLine.priority > line.priority)) {
+            if ((styleLine = lines.get(idx)) != null && (line == null || styleLine.priority >= line.priority)) {
                 line = styleLine;
                 lineIdx = idx;
@@ -97,8 +97,8 @@
             }
             idx = "x" + key;
-            if ((styleArea = areas.get(idx)) != null && (area == null || styleArea.priority > area.priority) && (!noclosed || !styleArea.closed)) {
+            if ((styleArea = areas.get(idx)) != null && (area == null || styleArea.priority >= area.priority) && (!noclosed || !styleArea.closed)) {
                 area = styleArea;
             }
-            if ((styleLine = lines.get(idx)) != null && (line == null || styleLine.priority > line.priority)) {
+            if ((styleLine = lines.get(idx)) != null && (line == null || styleLine.priority >= line.priority)) {
                 line = styleLine;
                 lineIdx = idx;
@@ -109,10 +109,10 @@
         }
         for (AreaElemStyle s : areasList) {
-            if ((area == null || s.priority > area.priority) && (!noclosed || !s.closed) && s.check(primitive)) {
+            if ((area == null || s.priority >= area.priority) && (!noclosed || !s.closed) && s.check(primitive)) {
                 area = s;
             }
         }
         for (LineElemStyle s : linesList) {
-            if ((line == null || s.priority > line.priority) && s.check(primitive)) {
+            if ((line == null || s.priority >= line.priority) && s.check(primitive)) {
                 line = s;
             }
