Revision 32704

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameNorth.java
138 138
	 */
139 139
	public void setXMLEntity(XMLEntity xml) {
140 140
		super.setXMLEntity(xml);
141
		String prevPath=getPath();
142
		File file = new File(AddLayer.class.getClassLoader()
143
				.getResource("northimages")
144
				.getFile());
145
		if (prevPath != null){
146
			String newPath = file.getAbsolutePath()+prevPath.substring(prevPath.indexOf("northimages")+11);
147
			setPath(newPath);
148
			try {
149
				load(newPath);
150
			} catch (Exception ex) {
151
				NotificationManager.addError("Error loading image :", ex);
152
			}
153
		}
141

  
154 142
		if (xml.contains("index")) {
155 143
			dependenceIndex = xml.getIntProperty("index");
156 144
		}

Also available in: Unified diff