Loading common/gal/opengl/gpu_manager.cpp +3 −3 Original line number Original line Diff line number Diff line Loading @@ -55,7 +55,7 @@ GPU_MANAGER* GPU_MANAGER::MakeManager( VERTEX_CONTAINER* aContainer ) GPU_MANAGER::GPU_MANAGER( VERTEX_CONTAINER* aContainer ) : GPU_MANAGER::GPU_MANAGER( VERTEX_CONTAINER* aContainer ) : m_isDrawing( false ), m_container( aContainer ), m_shader( NULL ) m_isDrawing( false ), m_container( aContainer ), m_shader( NULL ), m_shaderAttrib( 0 ) { { } } Loading @@ -80,8 +80,8 @@ void GPU_MANAGER::SetShader( SHADER& aShader ) // Cached manager // Cached manager GPU_CACHED_MANAGER::GPU_CACHED_MANAGER( VERTEX_CONTAINER* aContainer ) : GPU_CACHED_MANAGER::GPU_CACHED_MANAGER( VERTEX_CONTAINER* aContainer ) : GPU_MANAGER( aContainer ), m_buffersInitialized( false ), GPU_MANAGER( aContainer ), m_buffersInitialized( false ), m_indicesPtr( NULL ), m_indicesSize( 0 ) m_verticesBuffer( 0 ), m_indicesBuffer( 0 ), m_indicesSize( 0 ) { { // Allocate the biggest possible buffer for indices // Allocate the biggest possible buffer for indices m_indices.reset( new GLuint[aContainer->GetSize()] ); m_indices.reset( new GLuint[aContainer->GetSize()] ); Loading common/geometry/seg.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -52,7 +52,7 @@ bool SEG::PointCloserThan( const VECTOR2I& aP, int aDist ) const int cb = sgn( d.x ); int cb = sgn( d.x ); int cc = -ca * A.x - cb * A.y; int cc = -ca * A.x - cb * A.y; ecoord num = ca * aP.x + cb * aP.y + cc; ecoord num = (ecoord) ca * aP.x + (ecoord) cb * aP.y + cc; num *= num; num *= num; if( ca && cb ) if( ca && cb ) Loading pcbnew/dialogs/dialog_pad_properties.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -934,7 +934,7 @@ void DIALOG_PAD_PROPERTIES::PadPropertiesAccept( wxCommandEvent& event ) { { DisplayError( NULL, _( "Unknown netname, netname not changed" ) ); DisplayError( NULL, _( "Unknown netname, netname not changed" ) ); } } else else if( netinfo ) { { rastnestIsChanged = true; rastnestIsChanged = true; m_currentPad->SetNetCode( netinfo->GetNet() ); m_currentPad->SetNetCode( netinfo->GetNet() ); Loading pcbnew/tools/selection_tool.cpp +11 −1 Original line number Original line Diff line number Diff line Loading @@ -1301,6 +1301,8 @@ void SELECTION_TOOL::generateMenu() // Filter out entries that does not apply to the current selection // Filter out entries that does not apply to the current selection for( int i = m_menuCopy.GetMenuItemCount() - 1; i >= 0; --i ) for( int i = m_menuCopy.GetMenuItemCount() - 1; i >= 0; --i ) { try { { if( !m_menuConditions[i]( m_selection ) ) if( !m_menuConditions[i]( m_selection ) ) { { Loading @@ -1308,6 +1310,14 @@ void SELECTION_TOOL::generateMenu() m_menuCopy.Destroy( item ); m_menuCopy.Destroy( item ); } } } } catch( boost::bad_function_call ) { // If it is not possible to determine if a menu entry should be // shown or not - do not let users pick non-existing options wxMenuItem* item = m_menuCopy.FindItemByPosition( i ); m_menuCopy.Destroy( item ); } } if( m_menuCopy.GetMenuItemCount() > 0 ) if( m_menuCopy.GetMenuItemCount() > 0 ) SetContextMenu( &m_menuCopy, CMENU_NOW ); SetContextMenu( &m_menuCopy, CMENU_NOW ); Loading Loading
common/gal/opengl/gpu_manager.cpp +3 −3 Original line number Original line Diff line number Diff line Loading @@ -55,7 +55,7 @@ GPU_MANAGER* GPU_MANAGER::MakeManager( VERTEX_CONTAINER* aContainer ) GPU_MANAGER::GPU_MANAGER( VERTEX_CONTAINER* aContainer ) : GPU_MANAGER::GPU_MANAGER( VERTEX_CONTAINER* aContainer ) : m_isDrawing( false ), m_container( aContainer ), m_shader( NULL ) m_isDrawing( false ), m_container( aContainer ), m_shader( NULL ), m_shaderAttrib( 0 ) { { } } Loading @@ -80,8 +80,8 @@ void GPU_MANAGER::SetShader( SHADER& aShader ) // Cached manager // Cached manager GPU_CACHED_MANAGER::GPU_CACHED_MANAGER( VERTEX_CONTAINER* aContainer ) : GPU_CACHED_MANAGER::GPU_CACHED_MANAGER( VERTEX_CONTAINER* aContainer ) : GPU_MANAGER( aContainer ), m_buffersInitialized( false ), GPU_MANAGER( aContainer ), m_buffersInitialized( false ), m_indicesPtr( NULL ), m_indicesSize( 0 ) m_verticesBuffer( 0 ), m_indicesBuffer( 0 ), m_indicesSize( 0 ) { { // Allocate the biggest possible buffer for indices // Allocate the biggest possible buffer for indices m_indices.reset( new GLuint[aContainer->GetSize()] ); m_indices.reset( new GLuint[aContainer->GetSize()] ); Loading
common/geometry/seg.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -52,7 +52,7 @@ bool SEG::PointCloserThan( const VECTOR2I& aP, int aDist ) const int cb = sgn( d.x ); int cb = sgn( d.x ); int cc = -ca * A.x - cb * A.y; int cc = -ca * A.x - cb * A.y; ecoord num = ca * aP.x + cb * aP.y + cc; ecoord num = (ecoord) ca * aP.x + (ecoord) cb * aP.y + cc; num *= num; num *= num; if( ca && cb ) if( ca && cb ) Loading
pcbnew/dialogs/dialog_pad_properties.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -934,7 +934,7 @@ void DIALOG_PAD_PROPERTIES::PadPropertiesAccept( wxCommandEvent& event ) { { DisplayError( NULL, _( "Unknown netname, netname not changed" ) ); DisplayError( NULL, _( "Unknown netname, netname not changed" ) ); } } else else if( netinfo ) { { rastnestIsChanged = true; rastnestIsChanged = true; m_currentPad->SetNetCode( netinfo->GetNet() ); m_currentPad->SetNetCode( netinfo->GetNet() ); Loading
pcbnew/tools/selection_tool.cpp +11 −1 Original line number Original line Diff line number Diff line Loading @@ -1301,6 +1301,8 @@ void SELECTION_TOOL::generateMenu() // Filter out entries that does not apply to the current selection // Filter out entries that does not apply to the current selection for( int i = m_menuCopy.GetMenuItemCount() - 1; i >= 0; --i ) for( int i = m_menuCopy.GetMenuItemCount() - 1; i >= 0; --i ) { try { { if( !m_menuConditions[i]( m_selection ) ) if( !m_menuConditions[i]( m_selection ) ) { { Loading @@ -1308,6 +1310,14 @@ void SELECTION_TOOL::generateMenu() m_menuCopy.Destroy( item ); m_menuCopy.Destroy( item ); } } } } catch( boost::bad_function_call ) { // If it is not possible to determine if a menu entry should be // shown or not - do not let users pick non-existing options wxMenuItem* item = m_menuCopy.FindItemByPosition( i ); m_menuCopy.Destroy( item ); } } if( m_menuCopy.GetMenuItemCount() > 0 ) if( m_menuCopy.GetMenuItemCount() > 0 ) SetContextMenu( &m_menuCopy, CMENU_NOW ); SetContextMenu( &m_menuCopy, CMENU_NOW ); Loading