Mercurial > mxd2map
comparison src/java/de/intevation/mxd/utils/MapToXMLUtils.java @ 137:cd55975ba0c4
Done some minor reformatings.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 23 Jun 2011 16:59:29 +0200 |
parents | 6b80d2c7536e |
children | f3a91cd7440b |
comparison
equal
deleted
inserted
replaced
136:7632850b9520 | 137:cd55975ba0c4 |
---|---|
104 NodeList list = root.getElementsByTagName("map"); | 104 NodeList list = root.getElementsByTagName("map"); |
105 if(list == null || list.getLength() == 0){ | 105 if(list == null || list.getLength() == 0){ |
106 return; | 106 return; |
107 } | 107 } |
108 else if(list.getLength() > 1) { | 108 else if(list.getLength() > 1) { |
109 return; | 109 return; |
110 } | 110 } |
111 else { | 111 else { |
112 try { | 112 try { |
113 list.item(0).removeChild(layerElement); | 113 list.item(0).removeChild(layerElement); |
114 } | 114 } |
115 catch(DOMException de) { | 115 catch(DOMException de) { |
116 return; | 116 return; |
117 } | 117 } |
118 } | 118 } |
119 } | 119 } |
120 | 120 |
121 /** | 121 /** |
122 * Add a renderer element to the map. | 122 * Add a renderer element to the map. |