From 704e3c51334342339e6edc0fd8c61cd9cd454436 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 26 Oct 2010 13:47:16 +0200 Subject: [PATCH] Try to fix a gencad export issue. --- pcbnew/export_gencad.cpp | 2 +- pcbnew/modules.cpp | 36 +----------------------------------- 2 files changed, 2 insertions(+), 36 deletions(-) diff --git a/pcbnew/export_gencad.cpp b/pcbnew/export_gencad.cpp index af03bddc53..783f16654e 100644 --- a/pcbnew/export_gencad.cpp +++ b/pcbnew/export_gencad.cpp @@ -238,7 +238,7 @@ void CreatePadsShapesSection( FILE* file, BOARD* pcb ) pad_type = "RECTANGULAR"; fprintf( file, " %s %d\n", pad_type, pad->m_Drill.x ); fprintf( file, "RECTANGLE %d %d %d %d\n", - pad->m_Offset.x - dx, -(pad->m_Offset.y - dy), + pad->m_Offset.x - dx, -pad->m_Offset.y - dy, pad->m_Size.x, pad->m_Size.y ); break; diff --git a/pcbnew/modules.cpp b/pcbnew/modules.cpp index 88be6bd023..689421a502 100644 --- a/pcbnew/modules.cpp +++ b/pcbnew/modules.cpp @@ -28,40 +28,6 @@ static PICKED_ITEMS_LIST s_PickedList; /* a picked list to * and dragged tracks */ - -/* Show or hide module pads. - */ -void Show_Pads_On_Off( WinEDA_DrawPanel* panel, wxDC* DC, MODULE* module ) -{ - D_PAD* pt_pad; - bool pad_fill_tmp; - - if( module == 0 ) - return; - - pad_fill_tmp = DisplayOpt.DisplayPadFill; - DisplayOpt.DisplayPadFill = true; /* Trace en SKETCH */ - pt_pad = module->m_Pads; - for( ; pt_pad != NULL; pt_pad = pt_pad->Next() ) - { - pt_pad->Draw( panel, DC, GR_XOR, g_Offset_Module ); - } - - DisplayOpt.DisplayPadFill = pad_fill_tmp; -} - - -/* Show or hide ratsnest - */ -void Rastnest_On_Off( WinEDA_DrawPanel* panel, wxDC* DC, MODULE* module ) -{ - WinEDA_BasePcbFrame* frame = (WinEDA_BasePcbFrame*) panel->GetParent(); - - frame->build_ratsnest_module( DC, module ); - frame->trace_ratsnest_module( DC ); -} - - /* Get a module name from user and return a pointer to the corresponding module */ MODULE* WinEDA_BasePcbFrame::GetModuleByName() @@ -113,7 +79,7 @@ void WinEDA_PcbFrame::StartMove_Module( MODULE* module, wxDC* DC ) DrawGeneralRatsnest( DC ); EraseDragList(); - + if( g_Drag_Pistes_On ) { Build_Drag_Liste( DrawPanel, DC, module );