Fix some issues.

This commit is contained in:
jean-pierre charras 2011-02-17 19:34:27 +01:00
parent 6428836755
commit 640a06850f
7 changed files with 13 additions and 6 deletions

View File

@ -252,7 +252,7 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
info.AddTranslator( new Contributor( wxT( "Kenta Yonekura" ), info.AddTranslator( new Contributor( wxT( "Kenta Yonekura" ),
wxT( "midpika@hotmail.com" ), wxT( "Japanese (JA)" ), wxT( "midpika@hotmail.com" ), wxT( "Japanese (JA)" ),
new wxBitmap( lang_jp_xpm ) ) ); new wxBitmap( lang_jp_xpm ) ) );
info.AddTranslator( new Contributor( wxT( "Milonas Kostas" ), info.AddTranslator( new Contributor( wxT( "Manolis Stefanis and Milonas Kostas" ),
wxT( "milonas.ko@gmail.com" ), wxT( "Greek (el_GR)" ), wxT( "milonas.ko@gmail.com" ), wxT( "Greek (el_GR)" ),
new wxBitmap( lang_gr_xpm ) ) ); new wxBitmap( lang_gr_xpm ) ) );

View File

@ -1209,10 +1209,10 @@ void EDA_DRAW_PANEL::EndMouseCapture( int id, int cursor, const wxString& title
{ {
INSTALL_UNBUFFERED_DC( dc, this ); INSTALL_UNBUFFERED_DC( dc, this );
m_endMouseCaptureCallback( this, &dc ); m_endMouseCaptureCallback( this, &dc );
m_mouseCaptureCallback = NULL;
m_endMouseCaptureCallback = NULL;
m_AutoPAN_Request = false;
} }
m_mouseCaptureCallback = NULL;
m_endMouseCaptureCallback = NULL;
m_AutoPAN_Request = false;
if( id != -1 && cursor != -1 ) if( id != -1 && cursor != -1 )
{ {

View File

@ -119,6 +119,7 @@ void EDA_DRAW_FRAME::OnZoom( wxCommandEvent& event )
break; break;
case ID_POPUP_ZOOM_CENTER: case ID_POPUP_ZOOM_CENTER:
center = screen->GetCrossHairPosition();
RedrawScreen( center, true ); RedrawScreen( center, true );
break; break;

View File

@ -1,4 +1,4 @@
update=04/02/2011 22:02:33 update=17/02/2011 19:33:13
version=1 version=1
last_client=pcbnew last_client=pcbnew
[common] [common]

View File

@ -89,7 +89,12 @@ bool SCH_EDIT_FRAME::SaveEEFile( SCH_SCREEN* screen, int FileSave )
if( !success ) if( !success )
DisplayError( this, _( "File write operation failed." ) ); DisplayError( this, _( "File write operation failed." ) );
else else
{
screen->ClrModify(); screen->ClrModify();
wxString msg;
msg.Printf( wxT("File %s saved"), GetChars(screen->GetFileName() ) );
SetStatusText(msg, 0);
}
fclose( f ); fclose( f );

View File

@ -129,6 +129,7 @@ void WinEDA_BasePcbFrame::CursorGoto( const wxPoint& aPos )
/* There may be need to reframe the drawing. */ /* There may be need to reframe the drawing. */
if( !DrawPanel->IsPointOnDisplay( aPos ) ) if( !DrawPanel->IsPointOnDisplay( aPos ) )
{ {
screen->SetCrossHairPosition( aPos );
RedrawScreen( aPos, true ); RedrawScreen( aPos, true );
} }
else else

View File

@ -120,7 +120,7 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
case ID_POPUP_CANCEL_CURRENT_COMMAND: case ID_POPUP_CANCEL_CURRENT_COMMAND:
if( DrawPanel->IsMouseCaptured() ) if( DrawPanel->IsMouseCaptured() )
{ {
DrawPanel->m_endMouseCaptureCallback( DrawPanel, &dc ); DrawPanel->EndMouseCapture();
} }
/* Should not be executed, just in case */ /* Should not be executed, just in case */