--- dia-cvs-snapshot/objects/network/basestation.c 2005-04-01 05:00:06.000000000 +0200 +++ dia-cvs-snapshot-0.94.20060324/objects/network/basestation.c 2006-03-25 12:33:56.000000000 +0100 @@ -198,13 +198,16 @@ Point *to, ConnectionPoint *cp, HandleMoveReason reason, ModifierKeys modifiers) { + ObjectChange* oc; + assert(basestation!=NULL); assert(handle!=NULL); assert(to!=NULL); - assert(handle->id < 8); - return NULL; + oc = element_move_handle (&(basestation->element), handle->id, to, cp, reason, modifiers); + + return oc; } static ObjectChange* @@ -313,11 +316,16 @@ Rectangle text_box; Point p; - text_calc_boundingbox(basestation->text, &text_box); - elem->width = BASESTATION_WIDTH; elem->height = BASESTATION_HEIGHT+basestation->text->height; + p = elem->corner; + p.x += elem->width/2; + p.y += elem->height + basestation->text->ascent; + text_set_position(basestation->text, &p); + + text_calc_boundingbox(basestation->text, &text_box); + /* Update connections: */ basestation->connections[0].pos.x = elem->corner.x; basestation->connections[0].pos.y = elem->corner.y; @@ -349,11 +357,6 @@ element_update_boundingbox(elem); - p = elem->corner; - p.x += elem->width/2; - p.y += elem->height + basestation->text->ascent; - text_set_position(basestation->text, &p); - /* Add bounding box for text: */ rectangle_union(&obj->bounding_box, &text_box);