Subversion Repositories public iLand

Rev

Rev 736 | Rev 743 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 736 Rev 739
Line 69... Line 69...
69
    for (; p!=ruGrid.end(); ++p) {
69
    for (; p!=ruGrid.end(); ++p) {
70
        QRectF rect = (*p)->boundingBox();
70
        QRectF rect = (*p)->boundingBox();
71
        foreach(const Tree& tree, tocopy) {
71
        foreach(const Tree& tree, tocopy) {
72
            Tree &newtree = (*p)->newTree();
72
            Tree &newtree = (*p)->newTree();
73
            newtree = tree; // copy tree data...
73
            newtree = tree; // copy tree data...
74
            newtree.setPosition(tree.position()+(*p)->boundingBox().topLeft());
-
 
-
 
74
            newtree.setPosition(tree.position()+rect.topLeft());
75
            newtree.setRU(*p);
75
            newtree.setRU(*p);
76
            newtree.setNewId();
76
            newtree.setNewId();
77
        }
77
        }
78
    }
78
    }
79
    if (logLevelInfo()) qDebug() << Tree::statCreated() << "trees loaded / copied.";
79
    if (logLevelInfo()) qDebug() << Tree::statCreated() << "trees loaded / copied.";