View | Details | Raw Unified | Return to issue 63339
Collapse All | Expand All

(-)org/openoffice/configuration/FileHelper.java (-2 / +6 lines)
Lines 62-69 Link Here
62
		File aFile = new File(sSource);
62
		File aFile = new File(sSource);
63
		
63
		
64
		try {
64
		try {
65
            absPath = "file://" + sSource.replace('\\','/');
65
			absPath = aFile.toURL().toString();
66
            
66
			// http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6351751
67
			if (absPath.substring(0, 5) == "file:" && absPath.substring(5, 7) != "//")
68
				absPath = "file://" + absPath.substring(5, absPath.length());
69
			if (absPath.charAt(absPath.length()-1) == '/')
70
				absPath = absPath.substring(0, absPath.length()-1);
67
		} catch (Exception e)
71
		} catch (Exception e)
68
        {
72
        {
69
            e.printStackTrace();            
73
            e.printStackTrace();            

Return to issue 63339