Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ConditionFactory.java
r14484 r14801 316 316 } 317 317 318 /** 319 * Determines if this condition requires an exact key match. 320 * @return {@code true} if this condition requires an exact key match. 321 * @since 14801 322 */ 323 public boolean requiresExactKeyMatch() { 324 return !Op.NEGATED_OPS.contains(op); 325 } 326 318 327 @Override 319 328 public boolean applies(Environment env) { … … 388 397 super(k, v, op, false); 389 398 this.keyPattern = Pattern.compile(k); 399 } 400 401 @Override 402 public boolean requiresExactKeyMatch() { 403 return false; 390 404 } 391 405 -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
r14746 r14801 53 53 import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.KeyMatchType; 54 54 import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.KeyValueCondition; 55 import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.Op;56 55 import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.PseudoClassCondition; 57 56 import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.SimpleKeyValueCondition; … … 333 332 } else if (c instanceof KeyValueCondition) { 334 333 KeyValueCondition keyValueCondition = (KeyValueCondition) c; 335 if ( !Op.NEGATED_OPS.contains(keyValueCondition.op)) {334 if (keyValueCondition.requiresExactKeyMatch()) { 336 335 key = keyValueCondition.k; 337 336 } -
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java
r14796 r14801 332 332 */ 333 333 @Test 334 @Ignore("not fixed yet")335 334 public void testTicket17358() throws ParseException { 336 335 final Collection<TestError> errors = buildTagChecker(
Note:
See TracChangeset
for help on using the changeset viewer.