Changeset 16817 in josm for trunk/src


Ignore:
Timestamp:
2020-08-02T15:30:16+02:00 (4 years ago)
Author:
simon04
Message:

RenderingCLI: default to elemstyles.mapcss

File:
1 edited

Legend:

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

    r16816 r16817  
    212212
    213213        if (argCurrentStyle.styleUrl != null) {
     214            argStyles.add(argCurrentStyle);
     215        } else if (argStyles.isEmpty()) {
     216            argCurrentStyle.styleUrl = "resource://styles/standard/elemstyles.mapcss";
    214217            argStyles.add(argCurrentStyle);
    215218        }
     
    581584
    582585    private void checkPreconditions(RenderingHelper rh) {
    583         if (argStyles.isEmpty())
    584             throw new IllegalArgumentException(tr("Missing argument - at least one style expected ({0})", "--style"));
    585 
    586586        Dimension imgSize = rh.getImageSize();
    587587        Logging.debug("image size (px): {0}x{1}", imgSize.width, imgSize.height);
Note: See TracChangeset for help on using the changeset viewer.