~ubuntu-branches/ubuntu/utopic/sweethome3d/utopic

« back to all changes in this revision

Viewing changes to src/com/eteks/sweethome3d/model/Home.java

  • Committer: Package Import Robot
  • Author(s): Gabriele Giacone
  • Date: 2013-11-05 13:02:16 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20131105130216-0e7dgqqvdq4pwm96
Tags: 4.2+dfsg-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
   * in <code>Home</code> class or in one of the classes that it uses,
47
47
   * this number is increased.
48
48
   */
49
 
  public static final long CURRENT_VERSION = 4100;
 
49
  public static final long CURRENT_VERSION = 4200;
50
50
  
51
51
  private static final boolean KEEP_BACKWARD_COMPATIBLITY = true;
52
52
 
1253
1253
      clone.selectedItems = new ArrayList<Selectable>(this.selectedItems.size());
1254
1254
      clone.furniture = cloneSelectableItems(
1255
1255
          this.furniture, this.selectedItems, clone.selectedItems);
 
1256
      for (int i = 0; i < this.furniture.size(); i++) {
 
1257
        HomePieceOfFurniture piece = this.furniture.get(i);
 
1258
        if (piece instanceof HomeDoorOrWindow
 
1259
            && ((HomeDoorOrWindow)piece).isBoundToWall()) {
 
1260
          ((HomeDoorOrWindow)clone.furniture.get(i)).setBoundToWall(true);
 
1261
        }
 
1262
      }
1256
1263
      clone.rooms = cloneSelectableItems(this.rooms, this.selectedItems, clone.selectedItems);
1257
1264
      clone.dimensionLines = cloneSelectableItems(
1258
1265
          this.dimensionLines, this.selectedItems, clone.selectedItems);