Commit 9026fe6e authored by jean-pierre charras's avatar jean-pierre charras

fixed bug 573833

parent f48322d3
......@@ -119,9 +119,9 @@ bool IsOK( wxWindow* parent, const wxString& text )
* Title = title to display
* Buffer: enter text by user
* Leading and trailing spaces are removed
* If buffer != "Buffer is displayed
* Buffer is the initial text displayed, anr the returned text
* Return:
* 0 if OK
* 1 if OK
* 0 if ESCAPE
*/
int Get_Message( const wxString& title, // The question
......
This diff is collapsed.
......@@ -53,6 +53,9 @@ void WinEDA_LibeditFrame::OnPlotCurrentComponent( wxCommandEvent& event )
if( FullFileName.IsEmpty() )
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 );
}
break;
......
......@@ -354,7 +354,7 @@ bool DIMENSION::Save( FILE* aFile ) const
const char keyWordLine[] = "$COTATION\n";
const char keyWordLineEnd[] = "$endCOTATION\n";
if( fprintf( aFile, keyWordLine ) != sizeof(keyWordLine)-1 )
if( fputs( keyWordLine, aFile ) == EOF )
goto out;
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_fx, FlecheG2_fy, m_Width );
if( fprintf( aFile, keyWordLineEnd ) != sizeof(keyWordLineEnd)-1 )
if( fputs( keyWordLineEnd, aFile ) == EOF )
goto out;
rc = true;
......
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