Changeset 7397 in josm for trunk/src


Ignore:
Timestamp:
2014-08-15T11:15:43+02:00 (10 years ago)
Author:
bastiK
Message:

fixed #10370 - MapCSS: text:name print "name" on the object

File:
1 edited

Legend:

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

    r7382 r7397  
    3838            if (val instanceof LiteralExpression) {
    3939                Object litValue = ((LiteralExpression) val).evaluate(null);
    40                 if (litValue instanceof Keyword) {
    41                     if ("none".equals(((Keyword) litValue).val)) {
    42                         this.val = null;
    43                     } else {
    44                         this.val = val;
    45                     }
     40                if (litValue instanceof Keyword && "none".equals(((Keyword) litValue).val)) {
     41                    this.val = null;
    4642                } else if (key.equals(TEXT)) {
    4743                    /* Special case for declaration 'text: ...'
Note: See TracChangeset for help on using the changeset viewer.