145
155
Document *pDoc = dynamic_cast <Document*> (GetDocument ());
146
156
View *view = pDoc->GetView ();
147
157
Theme *pTheme = pDoc->GetTheme ();
148
159
WidgetData *pData= view->GetData ();
149
160
map<double, Object*>::iterator im, endm;
150
161
double x, y, x0, y0, x1, y1;
153
169
pData->GetObjectBounds (pObj, &rect);
154
170
x = (rect.x0 + rect.x1) / 2;
155
171
while (Children[x] != NULL)