From 82a268a63e5f7b115bc298a568867e00176190ad Mon Sep 17 00:00:00 2001 From: CHARRAS Date: Tue, 8 Jan 2008 13:36:05 +0000 Subject: [PATCH] bug solved in block.cpp --- pcbnew/block.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/block.cpp b/pcbnew/block.cpp index 5081f51b07..7c36ebbf95 100644 --- a/pcbnew/block.cpp +++ b/pcbnew/block.cpp @@ -560,7 +560,7 @@ void WinEDA_BasePcbFrame::Block_Delete( wxDC* DC ) for( pt_segm = m_Pcb->m_Zone; pt_segm != NULL; pt_segm = NextSegZ ) { NextSegZ = pt_segm->Next(); - if( PtStruct->HitTest( GetScreen()->BlockLocate ) ) + if( pt_segm->HitTest( GetScreen()->BlockLocate ) ) { pt_segm->DeleteStructure(); }