Changeset 5399 in josm


Ignore:
Timestamp:
2012-08-06T14:57:51+02:00 (7 years ago)
Author:
bastiK
Message:

fixed #7929 - You can't add new tag

Location:
trunk/src/org/openstreetmap/josm/gui/mappaint
Files:
2 edited

Legend:

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

    r5206 r5399  
    282282     * From these properties, it generates the different types of styles.
    283283     *
     284     * @param osm the primitive to create styles for
     285     * @param scale the scale (in meters per 100 px), must be > 0
    284286     * @param multipolyOuterWay support for a very old multipolygon tagging style
    285287     * where you add the tags both to the outer and the inner way.
     
    288290     * we pretend it is. This is useful for generating area styles from the (segmented)
    289291     * outer ways of a multipolygon.
     292     * @return the generated styles and the valid range as a pair
    290293     */
    291294    public Pair<StyleList, Range> generateStyles(OsmPrimitive osm, double scale, OsmPrimitive multipolyOuterWay, boolean pretendWayIsClosed) {
     
    335338            }
    336339        }
    337 
    338340        return new Pair<StyleList, Range>(new StyleList(sl), mc.range);
    339341    }
  • trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java

    r5383 r5399  
    132132            Node virtualNode = new Node();
    133133            virtualNode.put(tag.getKey(), tag.getValue());
    134             StyleList styleList = getStyles().generateStyles(virtualNode, 0, null, false).a;
     134            StyleList styleList = getStyles().generateStyles(virtualNode, 0.5, null, false).a;
    135135            if (styleList != null) {
    136136                for (Iterator<ElemStyle> it = styleList.iterator(); it.hasNext(); ) {
Note: See TracChangeset for help on using the changeset viewer.