Changeset 976 in josm


Ignore:
Timestamp:
Sep 16, 2008 6:29:35 PM (5 years ago)
Author:
stoecker
Message:

fix bug #1561 and #5160

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java

    r885 r976  
    104104 
    105105                if(!isZoomOk(wayStyle)) 
     106                        return; 
     107                if(w.nodes.size() < 2) 
    106108                        return; 
    107109 
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java

    r955 r976  
    206206         */ 
    207207        public void visit(Way w) { 
    208                 if (w.incomplete) return; 
    209  
    210                                 // show direction arrows, if draw.segment.relevant_directions_only is not set, the way is tagged with a direction key 
    211                                 // (even if the tag is negated as in oneway=false) or the way is selected 
    212  
    213                                 boolean showThisDirectionArrow = w.selected 
    214                                                                                                  || (showDirectionArrow 
    215                                                                                                         && (!showRelevantDirectionsOnly || w.hasDirectionKeys)); 
     208                if (w.incomplete || w.nodes.size() < 2) 
     209                        return; 
     210 
     211                // show direction arrows, if draw.segment.relevant_directions_only is not set, the way is tagged with a direction key 
     212                // (even if the tag is negated as in oneway=false) or the way is selected 
     213 
     214                boolean showThisDirectionArrow = w.selected 
     215                || (showDirectionArrow && (!showRelevantDirectionsOnly || w.hasDirectionKeys)); 
    216216                Color wayColor; 
    217217 
  • trunk/src/org/openstreetmap/josm/gui/MainApplication.java

    r966 r976  
    3535         */ 
    3636        public MainApplication(JFrame mainFrame) { 
     37                super(); 
    3738                mainFrame.setContentPane(contentPane); 
    3839                mainFrame.setJMenuBar(menu); 
     
    8283                } 
    8384 
     85                // Only show the splash screen if we don't print the help and exit 
     86                SplashScreen splash; 
     87                if (!argList.contains("--help") && !argList.contains("-?") && !argList.contains("-h")) { 
     88                        splash = new SplashScreen(); 
     89                } else { 
     90                        splash = null; 
     91                } 
     92 
     93                splash.setStatus(tr("Reading preferences")); 
    8494                // get the preferences. 
    8595                final File prefDir = new File(Main.pref.getPreferencesDir()); 
     
    123133                        language = (String)(args.get("language").toArray()[0]); 
    124134 
     135                splash.setStatus(tr("Activating updated plugins")); 
    125136                if (!PluginDownloader.moveUpdatedPlugins()) { 
    126137                        JOptionPane.showMessageDialog(null, 
    127                                 tr("Activating the updated plugins failed."), 
     138                                tr("Activating the updated plugins failed. Check if JOSM has the permission to overwrite the existing ones."), 
    128139                                tr("Plugins"), JOptionPane.ERROR_MESSAGE); 
    129140                } 
    130141                 
    131142                // load the early plugins 
     143                splash.setStatus(tr("Loading early plugins")); 
    132144                Main.loadPlugins(true, language); 
    133145 
     
    159171                } 
    160172 
     173                splash.setStatus(tr("Setting defaults")); 
    161174                preConstructorInit(args); 
     175                splash.setStatus(tr("Creating main GUI")); 
    162176                JFrame mainFrame = new JFrame(tr("Java OpenStreetMap - Editor")); 
    163177                Main.parent = mainFrame; 
    164178                final Main main = new MainApplication(mainFrame); 
     179                splash.setStatus(tr("Loading plugins")); 
    165180                Main.loadPlugins(false, null); 
    166181                toolbar.refreshToolbarControl(); 
    167182 
    168183                mainFrame.setVisible(true); 
     184                splash.closeSplash(); 
    169185 
    170186                if (!args.containsKey("no-fullscreen") && !args.containsKey("geometry") && Toolkit.getDefaultToolkit().isFrameStateSupported(JFrame.MAXIMIZED_BOTH)) 
  • trunk/styles/standard/elemstyles.xml

    r973 r976  
    603603        <rule> 
    604604                <condition k="highway" v="turning_circle"/> 
    605                 <area width="1" colour="roundabout#c0c0c0"/> 
     605                <area width="1" colour="turningcircle#c0c0c0"/> 
    606606                <icon annotate="true" src="vehicle/turning_circle.png"/> 
    607607                <scale_min>1</scale_min> 
Note: See TracChangeset for help on using the changeset viewer.