Skip to content

Commit

Permalink
locationHandlers are not being saved OpenMap-java#53
Browse files Browse the repository at this point in the history
The com.bbn.openmap.layer.location.LocationLayer locationHandlers are not being saved, the property value is always blank.
Modified to remove the scope character from the location handler prefix
  • Loading branch information
frechett committed Nov 6, 2019
1 parent cd596f4 commit cbc1098
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/openmap/com/bbn/openmap/layer/location/LocationLayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -588,14 +588,22 @@ public Properties getProperties(Properties props) {
// list.
if (dataHandlers != null) {
String handler;
int len;
for (LocationHandler dataHandler : dataHandlers) {
dataHandler.getProperties(props);
handler = dataHandler.getPropertyPrefix();
if (handler != null && !(handler = handler.trim()).isEmpty()) {
if (handlerList.length() != 0) {
handlerList.append(' ');
if (handler != null) {
handler = handler.trim();
len = handler.length();
if (handler.charAt(len - 1) == '.') {
len--;
}
if (len > 0) {
if (handlerList.length() != 0) {
handlerList.append(' ');
}
handlerList.append(handler, 0, len);
}
handlerList.append(handler);
}
}
}
Expand Down

0 comments on commit cbc1098

Please sign in to comment.