Fixed Drawing of DrawSheetStruct, so DrawSheetLabelStructs are only drawn if they are not being moved (fixes ugliness while moving PinSheets).

This commit is contained in:
diemer 2008-03-30 12:06:47 +00:00
parent f12a19fe0d
commit 1e40e8dfa3
1 changed files with 2 additions and 1 deletions

View File

@ -257,7 +257,8 @@ void DrawSheetStruct::Draw( WinEDA_DrawPanel* panel, wxDC* DC, const wxPoint& of
SheetLabelStruct = m_Label; SheetLabelStruct = m_Label;
while( SheetLabelStruct != NULL ) 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); SheetLabelStruct = (DrawSheetLabelStruct*) (SheetLabelStruct->Pnext);
} }
} }