Ticket #24747: 24747.patch

File 24747.patch, 1.1 KB (added by GerdP, 8 days ago)

remove overcausious test

  • src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java

     
    4545import org.openstreetmap.josm.gui.util.ChangeNotifier;
    4646import org.openstreetmap.josm.tools.CheckParameterUtil;
    4747import org.openstreetmap.josm.tools.ColorScale;
    48 import org.openstreetmap.josm.tools.Logging;
    4948
    5049/**
    5150 * This is the model used by the history browser.
     
    142141        if (primitive.isNew() || !primitive.isUsable())
    143142            return false;
    144143
    145         //try creating a history primitive. if that fails, the primitive cannot be used.
    146         try {
    147             HistoryOsmPrimitive.forOsmPrimitive(primitive);
    148         } catch (IllegalArgumentException ign) {
    149             Logging.trace(ign);
    150             return false;
    151         }
    152 
    153144        if (history == null)
    154145            return false;
    155146        // only show latest of the same version if it is modified