- Timestamp:
- 2019-08-08T01:01:59+02:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRenderer.java
r13989 r15292 118 118 119 119 g.setColor(backgroundColor); 120 g.fill(new Rectangle2D.Double(x-1, y-12, 8*strlen+1 , 14));120 g.fill(new Rectangle2D.Double(x-1, y-12, 8*strlen+1d, 14)); 121 121 g.setColor(clr); 122 122 g.drawString(on, (int) x, (int) y); -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r14583 r15292 757 757 g.setColor(color); 758 758 } 759 Rectangle2D rect = new Rectangle2D.Double(p.getInViewX()-radius-1 , p.getInViewY()-radius-1, size + 1, size + 1);759 Rectangle2D rect = new Rectangle2D.Double(p.getInViewX()-radius-1d, p.getInViewY()-radius-1d, size + 1d, size + 1d); 760 760 if (fill) { 761 761 g.fill(rect); … … 843 843 temporaryGraphics.drawImage(img.getImage(disabled), drawX, drawY, nc); 844 844 if (selected || member) { 845 selectionDrawer.accept(temporaryGraphics, new Rectangle2D.Double(drawX - 2 , drawY - 2, img.getWidth() + 4, img.getHeight() + 4));845 selectionDrawer.accept(temporaryGraphics, new Rectangle2D.Double(drawX - 2d, drawY - 2d, img.getWidth() + 4d, img.getHeight() + 4d)); 846 846 } 847 847 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/SearchDialog.java
r15109 r15292 188 188 return true; 189 189 } catch (SearchParseError | MapCSSException e) { 190 Logging.trace(e); 190 191 return false; 191 192 } -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java
r15282 r15292 1418 1418 1419 1419 // collect frequently used items 1420 final int fromX = (int) fromPnt.getX(); final int deltaX = (int) (toPnt.getX() - fromX);1421 final int fromY = (int) fromPnt.getY(); final int deltaY = (int) (toPnt.getY() - fromY);1420 final long fromX = (long) fromPnt.getX(); final long deltaX = (long) (toPnt.getX() - fromX); 1421 final long fromY = (long) fromPnt.getY(); final long deltaY = (long) (toPnt.getY() - fromY); 1422 1422 1423 1423 // use same random values for each point -
trunk/src/org/openstreetmap/josm/gui/mappaint/BooleanStyleSettingGui.java
r15289 r15292 32 32 33 33 static class BooleanStyleSettingCheckBoxMenuItem extends JCheckBoxMenuItem { 34 boolean noRepaint = false;34 boolean noRepaint; 35 35 36 publicBooleanStyleSettingCheckBoxMenuItem(BooleanStyleSetting setting) {36 BooleanStyleSettingCheckBoxMenuItem(BooleanStyleSetting setting) { 37 37 setAction(new AbstractAction(setting.label) { 38 38 @Override -
trunk/src/org/openstreetmap/josm/tools/ColorScale.java
r15247 r15292 33 33 ColorScale sc = new ColorScale(); 34 34 sc.colors = Utils.copyArray(colors); 35 sc.setRange(0, colors.length - 1 );35 sc.setRange(0, colors.length - 1d); 36 36 sc.addBounds(); 37 37 return sc;
Note:
See TracChangeset
for help on using the changeset viewer.