} else {
center = new LatLon(0,0);
}
OffsetBookmark nb = new OffsetBookmark(
Main.getProjection().toCode(), layer.getInfo().getName(),
name, layer.getDx(), layer.getDy(), center.lon(), center.lat());
for (ListIterator<OffsetBookmark> it = allBookmarks.listIterator();it.hasNext();) {
OffsetBookmark b = it.next();
if (b.isUsable(layer) && name.equals(b.name)) {
it.set(nb);
saveBookmarks();