Changeset 8515 in josm
- Timestamp:
- 2015-06-21T12:19:37+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Condition.java
r8514 r8515 500 500 return new PseudoClassCondition(method, not); 501 501 } 502 throw new IllegalArgumentException("Invalid pseudo class specified: " + id);502 throw new MapCSSException("Invalid pseudo class specified: " + id); 503 503 } 504 504 -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParser.jj
r8510 r8515 36 36 import org.openstreetmap.josm.tools.ColorHelper; 37 37 import org.openstreetmap.josm.tools.Pair; 38 import org.openstreetmap.josm.tools.Utils; 38 39 39 40 /** … … 1145 1146 1146 1147 if (me != null) { 1147 me.setLine(pe.currentToken.next.beginLine); 1148 me.setColumn(pe.currentToken.next.beginColumn); 1148 final Token token = Utils.firstNonNull(pe.currentToken.next, pe.currentToken); 1149 me.setLine(token.beginLine); 1150 me.setColumn(token.beginColumn); 1149 1151 e = me; 1150 1152 } else {
Note:
See TracChangeset
for help on using the changeset viewer.