Changeset 851 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2008-08-23T22:17:49+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r791 r851 38 38 39 39 String styleName = Main.pref.get("mappaint.style", "standard"); 40 // fallback to standard name for internal case, as we only have one internal style 41 String internalStyleName = "standard"; 40 42 styleDir = Main.pref.get("mappaint.styledir", Main.pref.getPreferencesDir()+"plugins/mappaint/"+styleName+"/"); 41 43 String elemStylesFile = getStyleDir()+"elemstyles.xml"; 42 44 imageDir = styleDir+"icons/"; 45 internalImageDir = "/images/styles/"+internalStyleName+"/"; 43 46 44 47 // System.out.println("mappaint: Using style: " + styleName); … … 65 68 } 66 69 else {// reading the builtin file from the plugin jar file 67 URL elemStylesPath = Main.class.getResource("/styles/"+ styleName+"/elemstyles.xml");70 URL elemStylesPath = Main.class.getResource("/styles/"+internalStyleName+"/elemstyles.xml"); 68 71 69 72 // System.out.println("mappaint: Using jar's elemstyles.xml: \"" + elemStylesPath + "\""); 70 73 if (elemStylesPath != null) 71 74 { 72 internalImageDir = "/images/styles/"+styleName+"/";73 75 isInternal = true; 74 76 try
Note:
See TracChangeset
for help on using the changeset viewer.