Changeset 18031 in josm


Ignore:
Timestamp:
2021-07-15T12:40:05+02:00 (3 months ago)
Author:
Don-vip
Message:

fix #20840 - Expert option mappaint.wireframe.show-relation-outlines to turn off relation outlines in wireframe mode (patch by ar2988-os)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java

    r13810 r18031  
    7070    /** Preference: should multiply connected nodes be filled */
    7171    protected boolean fillConnectionNode;
     72    /** Preference: should relation ways be shown with outlines */
     73    protected boolean useRelatedWayStroke;
    7274    /** Preference: size of selected nodes */
    7375    protected int selectedNodeSize;
     
    140142        fillConnectionNode = settings.isFillConnectionNode();
    141143        fillTaggedNode = settings.isFillTaggedNode();
     144        useRelatedWayStroke =
     145                Config.getPref().getBoolean("mappaint.wireframe.show-relation-outlines", true);
    142146
    143147        g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
     
    376380                }
    377381
    378                 g.draw(relatedWayStroke.createStrokedShape(path));
     382                if (useRelatedWayStroke) {
     383                    g.draw(relatedWayStroke.createStrokedShape(path));
     384                } else {
     385                    g.draw(path);
     386                }
    379387            }
    380388        }
Note: See TracChangeset for help on using the changeset viewer.