- Timestamp:
- 2016-05-27T19:07:59+02:00 (8 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapView.java
r10282 r10285 75 75 import org.openstreetmap.josm.tools.Shortcut; 76 76 import org.openstreetmap.josm.tools.Utils; 77 import org.openstreetmap.josm.tools.bugreport.BugReport; 77 78 import org.openstreetmap.josm.tools.bugreport.BugReportExceptionHandler; 78 79 … … 750 751 751 752 private void paintLayer(Layer layer, Graphics2D g, Bounds box) { 752 if (layer.getOpacity() < 1) { 753 g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, (float) layer.getOpacity())); 754 } 755 layer.paint(g, this, box); 756 g.setPaintMode(); 753 try { 754 if (layer.getOpacity() < 1) { 755 g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, (float) layer.getOpacity())); 756 } 757 layer.paint(g, this, box); 758 g.setPaintMode(); 759 } catch (RuntimeException t) { 760 throw BugReport.intercept(t).put("layer", layer).put("bounds", box); 761 } 757 762 } 758 763 -
trunk/src/org/openstreetmap/josm/tools/bugreport/BugReportExceptionHandler.java
r10214 r10285 198 198 static JPanel buildPanel(final Throwable e) { 199 199 StringWriter stack = new StringWriter(); 200 e.printStackTrace(new PrintWriter(stack)); 200 PrintWriter writer = new PrintWriter(stack); 201 if (e instanceof ReportedException) { 202 // Temporary! 203 ((ReportedException) e).printReportDataTo(writer); 204 ((ReportedException) e).printReportStackTo(writer); 205 } else { 206 e.printStackTrace(writer); 207 } 201 208 202 209 String text = ShowStatusReportAction.getReportHeader() + stack.getBuffer().toString();
Note:
See TracChangeset
for help on using the changeset viewer.