fixed bug 573833

This commit is contained in:
jean-pierre charras 2010-05-02 21:35:46 +02:00
parent f48322d31d
commit 9026fe6e56
4 changed files with 11475 additions and 33006 deletions

View File

@ -119,9 +119,9 @@ bool IsOK( wxWindow* parent, const wxString& text )
* Title = title to display * Title = title to display
* Buffer: enter text by user * Buffer: enter text by user
* Leading and trailing spaces are removed * Leading and trailing spaces are removed
* If buffer != "Buffer is displayed * Buffer is the initial text displayed, anr the returned text
* Return: * Return:
* 0 if OK * 1 if OK
* 0 if ESCAPE * 0 if ESCAPE
*/ */
int Get_Message( const wxString& title, // The question int Get_Message( const wxString& title, // The question

File diff suppressed because it is too large Load Diff

View File

@ -53,6 +53,9 @@ void WinEDA_LibeditFrame::OnPlotCurrentComponent( wxCommandEvent& event )
if( FullFileName.IsEmpty() ) if( FullFileName.IsEmpty() )
return; return;
// calling wxYield is mandatory under Linux, after closing the file selector dialog
// to refresh the screen before creating the PNG or JPEG image from screen
wxYield();
CreatePNGorJPEGFile( FullFileName, fmt_is_jpeg ); CreatePNGorJPEGFile( FullFileName, fmt_is_jpeg );
} }
break; break;

View File

@ -354,7 +354,7 @@ bool DIMENSION::Save( FILE* aFile ) const
const char keyWordLine[] = "$COTATION\n"; const char keyWordLine[] = "$COTATION\n";
const char keyWordLineEnd[] = "$endCOTATION\n"; const char keyWordLineEnd[] = "$endCOTATION\n";
if( fprintf( aFile, keyWordLine ) != sizeof(keyWordLine)-1 ) if( fputs( keyWordLine, aFile ) == EOF )
goto out; goto out;
fprintf( aFile, "Ge %d %d %lX\n", m_Shape, m_Layer, m_TimeStamp ); fprintf( aFile, "Ge %d %d %lX\n", m_Shape, m_Layer, m_TimeStamp );
@ -401,7 +401,7 @@ bool DIMENSION::Save( FILE* aFile ) const
FlecheG2_ox, FlecheG2_oy, FlecheG2_ox, FlecheG2_oy,
FlecheG2_fx, FlecheG2_fy, m_Width ); FlecheG2_fx, FlecheG2_fy, m_Width );
if( fprintf( aFile, keyWordLineEnd ) != sizeof(keyWordLineEnd)-1 ) if( fputs( keyWordLineEnd, aFile ) == EOF )
goto out; goto out;
rc = true; rc = true;