Ignore:
Timestamp:
2020-03-29T10:10:42+02:00 (4 years ago)
Author:
GerdP
Message:

see #18982: Improve log message, show content of panel instead of meaningless output of HtmlPanel.toString()

  • Don't create HtmlPanel in ExceptionDialogUtil (regression from #13777), create it in HelpAwareOptionPane instead when msg is a String
File:
1 edited

Legend:

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

    r15084 r16217  
    1616
    1717import org.openstreetmap.josm.data.osm.OsmPrimitive;
    18 import org.openstreetmap.josm.gui.widgets.HtmlPanel;
    1918import org.openstreetmap.josm.io.ChangesetClosedException;
    2019import org.openstreetmap.josm.io.IllegalDataException;
     
    4544        return HelpAwareOptionPane.showOptionDialog(
    4645                MainApplication.getMainFrame(),
    47                 new HtmlPanel(msg),
     46                msg,
    4847                title,
    4948                JOptionPane.ERROR_MESSAGE,
     
    336335        Object msg = null;
    337336        if (e.isHtml() && body != null && body.startsWith("<") && body.contains("<html>")) {
    338             msg = new HtmlPanel(body);
     337            // use html string as is
    339338        } else {
    340339            msg = ExceptionUtil.explainGeneric(e);
Note: See TracChangeset for help on using the changeset viewer.