- Timestamp:
- 2014-08-13T14:36:08+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Instruction.java
r7378 r7382 36 36 this.key = key; 37 37 this.isSetInstruction = isSetInstruction; 38 if (val instanceof Keyword) { 39 if ("none".equals(((Keyword) val).val)) { 40 this.val = null; 41 } else { 42 this.val = val; 43 } 44 } else if (val instanceof LiteralExpression) { 38 if (val instanceof LiteralExpression) { 45 39 Object litValue = ((LiteralExpression) val).evaluate(null); 46 if (key.equals(TEXT)) { 40 if (litValue instanceof Keyword) { 41 if ("none".equals(((Keyword) litValue).val)) { 42 this.val = null; 43 } else { 44 this.val = val; 45 } 46 } else if (key.equals(TEXT)) { 47 47 /* Special case for declaration 'text: ...' 48 48 *
Note:
See TracChangeset
for help on using the changeset viewer.