Index: /applications/editors/josm/plugins/mappaint/src/mappaint/MapPaintPlugin.java
===================================================================
--- /applications/editors/josm/plugins/mappaint/src/mappaint/MapPaintPlugin.java	(revision 3586)
+++ /applications/editors/josm/plugins/mappaint/src/mappaint/MapPaintPlugin.java	(revision 3587)
@@ -27,11 +27,17 @@
 	public MapPaintPlugin() {
 		String styleName = Main.pref.get("mappaint.style", "standard");
-		styleDir = getPluginDir()+styleName+"/"; //some day we will support diferent icon directories over options
+		styleDir = Main.pref.getPreferencesDir()+"plugins/mappaint/"+styleName+"/"; //some day we will support different icon directories over options
 		String elemStylesFile = getStyleDir()+"elemstyles.xml";
+		
+		// System.out.println("mappaint: Using style: " + styleName);
+		// System.out.println("mappaint: Using style dir: " + styleDir);
+		// System.out.println("mappaint: Using style file: " + elemStylesFile);
+		
 		File f = new File(elemStylesFile);
 		if (f.exists())
 		{
-			try
+			try	// reading file from file system
 			{
+				// System.out.println("mappaint: Using style file: \"" + f + "\"");
 				XMLReader xmlReader = XMLReaderFactory.createXMLReader();
 				ElemStyleHandler handler = new ElemStyleHandler();
@@ -47,6 +53,8 @@
 			}
 		} 
-		else{ //use the standart elemstyle of this style 
+		else{	// reading the builtin file from the plugin jar file
 			URL elemStylesPath = getClass().getResource("/"+styleName+"/elemstyles.xml");
+			
+			// System.out.println("mappaint: Using jar's elemstyles.xml: \"" + elemStylesPath + "\"");
 			if (elemStylesPath != null)
 			{
@@ -65,5 +73,7 @@
 					throw new RuntimeException(e);
 				}
-			} 
+			} else {
+				System.out.println("mappaint: Couldn't find style: \"" + styleDir + "\"elemstyles.xml");
+			}
 		}
 	}
