Changeset 497 in josm for trunk/src


Ignore:
Timestamp:
2007-12-20T17:28:23+01:00 (17 years ago)
Author:
gebner
Message:

When toggling wireframe mode, don't fail if there is no MapFrame yet.

File:
1 edited

Legend:

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

    r488 r497  
    168168                public void actionPerformed(ActionEvent ev) {
    169169                        Main.pref.put("draw.wireframe", wireframe.isSelected());
    170                         Main.map.mapView.repaint();
     170                        if (Main.map != null) {
     171                                        Main.map.mapView.repaint();
     172                                }
    171173                }
    172174        });
Note: See TracChangeset for help on using the changeset viewer.