Changeset 7477 in josm for trunk/src/org


Ignore:
Timestamp:
2014-08-31T14:32:26+02:00 (10 years ago)
Author:
bastiK
Message:

see #10446 - add switch to override glyph bug test and add debug output in trace debug level

File:
1 edited

Legend:

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

    r7472 r7477  
    254254        if (IS_GLYPH_VECTOR_DOUBLE_TRANSLATION_BUG != null)
    255255            return IS_GLYPH_VECTOR_DOUBLE_TRANSLATION_BUG;
     256        String overridePref = Main.pref.get("glyph-bug", null);
     257        if (overridePref != null) {
     258            boolean override = Boolean.parseBoolean(overridePref);
     259            Main.info("Override glyph vector bug: set to value "+override);
     260            IS_GLYPH_VECTOR_DOUBLE_TRANSLATION_BUG = override;
     261            return IS_GLYPH_VECTOR_DOUBLE_TRANSLATION_BUG;
     262        }
    256263        FontRenderContext frc = new FontRenderContext(null, false, false);
    257264        Font font = new Font("Dialog", Font.PLAIN, 12);
     
    259266        gv.setGlyphTransform(0, AffineTransform.getTranslateInstance(1000, 1000));
    260267        Shape shape = gv.getGlyphOutline(0);
     268        Main.trace("#10446: shape: "+shape.getBounds());
    261269        // x is about 1000 on normal stystems and about 2000 when the bug occurs
    262270        int x = shape.getBounds().x;
Note: See TracChangeset for help on using the changeset viewer.