Index: trunk/src/obj_elem.c =================================================================== --- trunk/src/obj_elem.c (revision 15604) +++ trunk/src/obj_elem.c (revision 15605) @@ -144,47 +144,6 @@ /* removes an element */ void *pcb_elemop_remove(pcb_opctx_t *ctx, pcb_element_t *Element) { - /* erase from screen */ - if ((pcb_silk_on(PCB) || PCB->PinOn) && (PCB_FRONT(Element) || PCB->InvisibleObjectsOn)) - pcb_elem_invalidate_erase(Element); pcb_undo_move_obj_to_remove(PCB_TYPE_ELEMENT, Element, Element, Element); return NULL; } - -/*** draw ***/ - -void pcb_elem_invalidate_erase(pcb_element_t *Element) -{ - PCB_ELEMENT_PCB_LINE_LOOP(Element); - { - pcb_line_invalidate_erase(line); - } - PCB_END_LOOP; - PCB_ARC_LOOP(Element); - { - pcb_arc_invalidate_erase(arc); - } - PCB_END_LOOP; - pcb_elem_name_invalidate_erase(Element); - pcb_flag_erase(&Element->Flags); -} - -void pcb_elem_name_invalidate_erase(pcb_element_t *Element) -{ - if (PCB_FLAG_TEST(PCB_FLAG_HIDENAME, Element)) { - return; - } - pcb_text_invalidate_draw(NULL, &PCB_ELEM_TEXT_VISIBLE(PCB, Element)); -} - -void pcb_elem_invalidate_draw(pcb_element_t *Element) -{ - pcb_elem_name_invalidate_draw(Element); -} - -void pcb_elem_name_invalidate_draw(pcb_element_t *Element) -{ - if (PCB_FLAG_TEST(PCB_FLAG_HIDENAME, Element)) - return; - pcb_text_invalidate_draw(NULL, &PCB_ELEM_TEXT_VISIBLE(PCB, Element)); -} Index: trunk/src/obj_elem_draw.h =================================================================== --- trunk/src/obj_elem_draw.h (revision 15604) +++ trunk/src/obj_elem_draw.h (revision 15605) @@ -1,38 +0,0 @@ -/* - * COPYRIGHT - * - * pcb-rnd, interactive printed circuit board design - * (this file is based on PCB, interactive printed circuit board design) - * Copyright (C) 1994,1995,1996 Thomas Nau - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Contact: - * Project page: http://repo.hu/projects/pcb-rnd - * lead developer: email to pcb-rnd (at) igor2.repo.hu - * mailing list: pcb-rnd (at) list.repo.hu (send "subscribe") - * - */ - -/*** Standard draw of elements ***/ - -/* Include rtree.h for these */ -void pcb_elem_invalidate_erase(pcb_element_t *Element); -void pcb_elem_name_invalidate_erase(pcb_element_t *Element); - -void pcb_elem_invalidate_draw(pcb_element_t *Element); -void pcb_elem_name_invalidate_draw(pcb_element_t *Element); - - Index: trunk/src/select.c =================================================================== --- trunk/src/select.c (revision 15604) +++ trunk/src/select.c (revision 15605) @@ -639,8 +639,10 @@ PCB_FLAG_ASSIGN(PCB_FLAG_SELECTED, Flag, text); } PCB_END_LOOP; +#if 0 pcb_elem_name_invalidate_draw(element); pcb_elem_invalidate_draw(element); +#endif changed = pcb_true; } }