Changeset 7382 in josm for trunk/src/org


Ignore:
Timestamp:
2014-08-13T14:36:08+02:00 (10 years ago)
Author:
bastiK
Message:

fix [7378]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Instruction.java

    r7378 r7382  
    3636            this.key = key;
    3737            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) {
    4539                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)) {
    4747                    /* Special case for declaration 'text: ...'
    4848                     *
Note: See TracChangeset for help on using the changeset viewer.