fixed bug 573833
This commit is contained in:
parent
f48322d31d
commit
9026fe6e56
|
@ -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
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue