X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fgraphlayout.cpp;fp=src%2Fgraphlayout.cpp;h=4f536beb3a4cbe5f1fc31799aeb3309368eecdc0;hb=9dc68827cbd515262ecb8d5ae8547d9e82c72e00;hp=0905cd94c96f3b8b0d57ce3ab2c9fbfa983c7cc0;hpb=8c6aa1264d2d7b0f1d6e31a97937572068aeaaae;p=inkscape.git diff --git a/src/graphlayout.cpp b/src/graphlayout.cpp index 0905cd94c..4f536beb3 100644 --- a/src/graphlayout.cpp +++ b/src/graphlayout.cpp @@ -4,6 +4,7 @@ /* * Authors: * Tim Dwyer + * Abhishek Sharma * * Copyright (C) 2005 Authors * @@ -126,7 +127,7 @@ void graphlayout(GSList const *const items) { ++i) { SPItem *u=*i; - Geom::OptRect const item_box(sp_item_bbox_desktop(u)); + Geom::OptRect const item_box(u->getBboxDesktop()); if(item_box) { Geom::Point ll(item_box->min()); Geom::Point ur(item_box->max()); @@ -228,7 +229,7 @@ void graphlayout(GSList const *const items) { map::iterator i=nodelookup.find(u->getId()); if(i!=nodelookup.end()) { Rectangle* r=rs[i->second]; - Geom::OptRect item_box(sp_item_bbox_desktop(u)); + Geom::OptRect item_box(u->getBboxDesktop()); if(item_box) { Geom::Point const curr(item_box->midpoint()); Geom::Point const dest(r->getCentreX(),r->getCentreY());