From f1ead64a7f42df9a1c75411f7e2f8a7c228efe4c Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Tue, 22 Apr 2008 17:22:08 +0000 Subject: [PATCH] delete hierarhical pin sheet bug --- eeschema/sheetlab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/sheetlab.cpp b/eeschema/sheetlab.cpp index 36c476ff45..c69343d056 100644 --- a/eeschema/sheetlab.cpp +++ b/eeschema/sheetlab.cpp @@ -445,12 +445,12 @@ void WinEDA_SchematicFrame::DeleteSheetLabel( wxDC* DC, else parent->m_Label = label->Next(); + delete SheetLabelToDel; + break; } } - delete SheetLabelToDel; - #if 0 && defined(DEBUG) std::cout << "\n\nafter deleting:\n" << std::flush; parent->Show( 0, std::cout );