Commit 84b0c656 authored by charras's avatar charras

solved bug 2072876.

parent 8816d4da
...@@ -558,12 +558,10 @@ void WinEDA_LibeditFrame::CreatePin( wxDC* DC ) ...@@ -558,12 +558,10 @@ void WinEDA_LibeditFrame::CreatePin( wxDC* DC )
/* Creation d'une nouvelle pin */ /* Creation d'une nouvelle pin */
{ {
LibEDA_BaseStruct* DrawItem; LibEDA_BaseStruct* DrawItem;
LibDrawPin* CurrentPin = (LibDrawPin*) CurrentDrawItem; LibDrawPin* CurrentPin;
if( CurrentLibEntry == NULL ) if( CurrentLibEntry == NULL )
return; return;
if( CurrentPin != NULL )
return;
/* Effacement des flags */ /* Effacement des flags */
DrawItem = CurrentLibEntry->m_Drawings; DrawItem = CurrentLibEntry->m_Drawings;
......
...@@ -646,13 +646,13 @@ void WinEDA_DrillFrame::Write_Excellon_Header( FILE* aFile ) ...@@ -646,13 +646,13 @@ void WinEDA_DrillFrame::Write_Excellon_Header( FILE* aFile )
if( !Minimal ) if( !Minimal )
{ {
DateAndTime( Line ); DateAndTime( Line );
wxString Title = g_Main_Title + wxT( " " ) + GetBuildVersion(); wxString msg = g_Main_Title + wxT( " " ) + GetBuildVersion();
fprintf( dest, ";DRILL file {%s} date %s\n", CONV_TO_UTF8( Title ), Line ); fprintf( aFile, ";DRILL file {%s} date %s\n", CONV_TO_UTF8( msg ), Line );
fputs( ";FORMAT={", aFile ); msg = wxT( ";FORMAT={" );
fprintf( dest, "%s / absolute / ", msg << m_Choice_Precision->GetStringSelection() << wxT("/ absolute / ");
CONV_TO_UTF8( m_Choice_Precision->GetStringSelection() ) ); msg << m_Choice_Unit->GetStringSelection() << wxT(" / ");
fprintf( dest, "%s / ", CONV_TO_UTF8( m_Choice_Unit->GetStringSelection() ) ); msg << m_Choice_Zeros_Format->GetStringSelection() << wxT("}\n");
fprintf( dest, "%s}\n", CONV_TO_UTF8( m_Choice_Zeros_Format->GetStringSelection() ) ); fputs( CONV_TO_UTF8( msg ), aFile );
fputs( "R,T\nVER,1\nFMAT,2\n", aFile ); fputs( "R,T\nVER,1\nFMAT,2\n", aFile );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment