Loading common/edaappl.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -449,7 +449,7 @@ bool WinEDA_App::SetBinDir() m_BinDir.Replace( WIN_STRING_DIR_SEP, UNIX_STRING_DIR_SEP ); m_BinDir.Replace( WIN_STRING_DIR_SEP, UNIX_STRING_DIR_SEP ); // Remove filename form command line: // Remove filename form command line: while( m_BinDir.Last() != '/' ) while( m_BinDir.Last() != '/' && !m_BinDir.IsEmpty() ) m_BinDir.RemoveLast(); m_BinDir.RemoveLast(); wxFileName pfn( wxT( "/posix/path/specification" ), wxT( "filename" ) ); wxFileName pfn( wxT( "/posix/path/specification" ), wxT( "filename" ) ); Loading common/zoom.cpp +4 −2 Original line number Original line Diff line number Diff line Loading @@ -51,8 +51,10 @@ void WinEDA_DrawFrame::PutOnGrid( wxPoint* coord ) if( !GetBaseScreen()->m_UserGridIsON ) if( !GetBaseScreen()->m_UserGridIsON ) { { coord->x = (int) round( ( coord->x / grid_size.x ) * grid_size.x ); coord->x = ( (int) round( coord->x / coord->y = (int) round( ( coord->y / grid_size.y ) * grid_size.y ); grid_size.x ) ) * grid_size.x; coord->y = ( (int) round( coord->y / grid_size.y ) ) * grid_size.y; } } } } Loading Loading
common/edaappl.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -449,7 +449,7 @@ bool WinEDA_App::SetBinDir() m_BinDir.Replace( WIN_STRING_DIR_SEP, UNIX_STRING_DIR_SEP ); m_BinDir.Replace( WIN_STRING_DIR_SEP, UNIX_STRING_DIR_SEP ); // Remove filename form command line: // Remove filename form command line: while( m_BinDir.Last() != '/' ) while( m_BinDir.Last() != '/' && !m_BinDir.IsEmpty() ) m_BinDir.RemoveLast(); m_BinDir.RemoveLast(); wxFileName pfn( wxT( "/posix/path/specification" ), wxT( "filename" ) ); wxFileName pfn( wxT( "/posix/path/specification" ), wxT( "filename" ) ); Loading
common/zoom.cpp +4 −2 Original line number Original line Diff line number Diff line Loading @@ -51,8 +51,10 @@ void WinEDA_DrawFrame::PutOnGrid( wxPoint* coord ) if( !GetBaseScreen()->m_UserGridIsON ) if( !GetBaseScreen()->m_UserGridIsON ) { { coord->x = (int) round( ( coord->x / grid_size.x ) * grid_size.x ); coord->x = ( (int) round( coord->x / coord->y = (int) round( ( coord->y / grid_size.y ) * grid_size.y ); grid_size.x ) ) * grid_size.x; coord->y = ( (int) round( coord->y / grid_size.y ) ) * grid_size.y; } } } } Loading