point-to-point-layout: Respect absolute values of specified boundaries

Before the change, the values specified in SetBoundaryBox were used only
to calculate relative positions of grid nodes.
This commit is contained in:
Alexander Afanasyev
2013-04-15 10:53:56 -07:00
parent cf33c35ec9
commit 715e7e5820
@@ -217,7 +217,7 @@ PointToPointGridHelper::BoundingBox (double ulx, double uly,
loc = CreateObject<ConstantPositionMobilityModel> ();
node->AggregateObject (loc);
}
Vector locVec (xLoc, yLoc, 0);
Vector locVec (ulx + xLoc, uly + yLoc, 0);
loc->SetPosition (locVec);
xLoc += xAdder;