diff -r b486ffd0fa11 -r 25ee6b988b73 mapeditor.cpp --- a/mapeditor.cpp Mon Dec 14 10:17:55 2009 +0000 +++ b/mapeditor.cpp Tue Dec 15 09:14:59 2009 +0000 @@ -403,13 +403,15 @@ } } -QRectF MapEditor::getTotalBBox() //FIXME-2 needed e.g. for image export +QRectF MapEditor::getTotalBBox() { QRectF r; -/* - for (int i=0;ibranchCount(); i++) - r=addBBox (rootItem->getBranchNum(i)->getTotalBBox(), r); -*/ + BranchObj *bo; + for (int i=0;igetRootItem()->branchCount(); i++) + { + bo=(BranchObj*)(model->getRootItem()->getBranchNum(i)->getLMO()); + if (bo) r=addBBox (bo->getTotalBBox(), r); + } return r; } @@ -417,7 +419,7 @@ QPixmap MapEditor::getPixmap() { QRectF mapRect=getTotalBBox(); - QPixmap pix((int)mapRect.width()+2,(int)mapRect.height()+1); + QPixmap pix((int)mapRect.width()+2,(int)mapRect.height()+2); QPainter pp (&pix); pp.setRenderHints(renderHints());