Index: polygon_act.c =================================================================== --- polygon_act.c (revision 4756) +++ polygon_act.c (revision 4757) @@ -69,7 +69,7 @@ gui->get_coords(_("Select an Object"), &x, &y); if ((type = SearchScreen(x, y, PCB_TYPE_POLYGON, &ptr1, &ptr2, &ptr3)) != PCB_TYPE_NONE) { - MorphPolygon((LayerType *) ptr1, (PolygonType *) ptr3); + MorphPolygon((pcb_layer_t *) ptr1, (PolygonType *) ptr3); Draw(); IncrementUndoSerialNumber(); }