Index: trunk/src/org/openstreetmap/josm/actions/AbstractMergeAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/AbstractMergeAction.java	(revision 3152)
+++ trunk/src/org/openstreetmap/josm/actions/AbstractMergeAction.java	(revision 3153)
@@ -30,9 +30,4 @@
      */
     static public class LayerListCellRenderer extends DefaultListCellRenderer {
-
-        protected boolean isActiveLayer(Layer layer) {
-            if (Main.isDisplayingMapView()) return false;
-            return Main.map.mapView.getActiveLayer() == layer;
-        }
 
         @Override
Index: trunk/src/org/openstreetmap/josm/data/osm/BBox.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/BBox.java	(revision 3152)
+++ trunk/src/org/openstreetmap/josm/data/osm/BBox.java	(revision 3153)
@@ -22,4 +22,11 @@
         add(a);
         add(b);
+    }
+
+    public BBox(BBox copy) {
+        this.xmin = copy.xmin;
+        this.xmax = copy.xmax;
+        this.ymin = copy.ymin;
+        this.ymax = copy.ymax;
     }
 
Index: trunk/src/org/openstreetmap/josm/data/osm/Relation.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/Relation.java	(revision 3152)
+++ trunk/src/org/openstreetmap/josm/data/osm/Relation.java	(revision 3153)
@@ -334,4 +334,6 @@
     @Override
     public BBox getBBox() {
+        if (members.isEmpty())
+            return new BBox(0, 0, 0, 0);
         if (getDataSet() == null)
             return calculateBBox(new HashSet<PrimitiveId>());
@@ -339,9 +341,6 @@
             if (bbox == null) {
                 bbox = calculateBBox(new HashSet<PrimitiveId>());
-                if (bbox == null) {
-                    bbox = new BBox(0, 0, 0, 0); // No members
-                }
-            }
-            return  bbox;
+            }
+            return new BBox(bbox);
         }
     }
Index: trunk/src/org/openstreetmap/josm/data/osm/Way.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/Way.java	(revision 3152)
+++ trunk/src/org/openstreetmap/josm/data/osm/Way.java	(revision 3153)
@@ -401,5 +401,5 @@
             bbox = new BBox(this);
         }
-        return bbox;
+        return new BBox(bbox);
     }
 
