1.1 --- a/branchobj.cpp Wed Jun 09 13:14:08 2010 +0000
1.2 +++ b/branchobj.cpp Mon Jun 14 13:59:17 2010 +0000
1.3 @@ -108,7 +108,13 @@
1.4 qreal y;
1.5 if (off==0)
1.6 {
1.7 + // Below is needed e.g. in a freshly loaded map,
1.8 + // bboxTotal seems not to be correct yet
1.9 + // relinking positions too far below then
1.10 + calcBBoxSizeWithChildren();
1.11 +
1.12 // new parent is just a branch, link to it
1.13 + bodst->calcBBoxSizeWithChildren();
1.14 QRectF t=bodst->getBBoxSizeWithChildren();
1.15 if (dsti->getLastBranch())
1.16 y=t.y() + t.height() ;