Ignore:
Timestamp:
2010-08-29T14:25:18+02:00 (14 years ago)
Author:
bastiK
Message:

1) do not show bug report window for bugs that are thrown while bug handling is in progress; 2) do not paint the MapView while bug handling is in progress. (This prevents the cascaded error messages when exceptions is thrown by paint())

File:
1 edited

Legend:

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

    r3451 r3478  
    5252import org.openstreetmap.josm.gui.layer.markerlayer.PlayHeadMarker;
    5353import org.openstreetmap.josm.tools.AudioPlayer;
     54import org.openstreetmap.josm.tools.BugReportExceptionHandler;
    5455
    5556/**
     
    443444     */
    444445    @Override public void paint(Graphics g) {
     446        if (BugReportExceptionHandler.exceptionHandlingInProgress())
     447            return;
     448
    445449        if (center == null)
    446450            return; // no data loaded yet.
Note: See TracChangeset for help on using the changeset viewer.