Changeset 7477 in josm for trunk/src/org
- Timestamp:
- 2014-08-31T14:32:26+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r7472 r7477 254 254 if (IS_GLYPH_VECTOR_DOUBLE_TRANSLATION_BUG != null) 255 255 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 } 256 263 FontRenderContext frc = new FontRenderContext(null, false, false); 257 264 Font font = new Font("Dialog", Font.PLAIN, 12); … … 259 266 gv.setGlyphTransform(0, AffineTransform.getTranslateInstance(1000, 1000)); 260 267 Shape shape = gv.getGlyphOutline(0); 268 Main.trace("#10446: shape: "+shape.getBounds()); 261 269 // x is about 1000 on normal stystems and about 2000 when the bug occurs 262 270 int x = shape.getBounds().x;
Note:
See TracChangeset
for help on using the changeset viewer.