From 1e40e8dfa30b9094ef8c69419be6ab92b7086169 Mon Sep 17 00:00:00 2001 From: diemer Date: Sun, 30 Mar 2008 12:06:47 +0000 Subject: [PATCH] Fixed Drawing of DrawSheetStruct, so DrawSheetLabelStructs are only drawn if they are not being moved (fixes ugliness while moving PinSheets). --- eeschema/class_drawsheet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/class_drawsheet.cpp b/eeschema/class_drawsheet.cpp index ae6726409f..ce1a369be7 100644 --- a/eeschema/class_drawsheet.cpp +++ b/eeschema/class_drawsheet.cpp @@ -257,7 +257,8 @@ void DrawSheetStruct::Draw( WinEDA_DrawPanel* panel, wxDC* DC, const wxPoint& of SheetLabelStruct = m_Label; while( SheetLabelStruct != NULL ) { - SheetLabelStruct->Draw( panel, DC, offset, DrawMode, Color ); + if ( !(SheetLabelStruct->m_Flags & IS_MOVED) ) + SheetLabelStruct->Draw( panel, DC, offset, DrawMode, Color ); SheetLabelStruct = (DrawSheetLabelStruct*) (SheetLabelStruct->Pnext); } }