Fix minor and very minor compil and Cppcheck warnings.

This commit is contained in:
jean-pierre charras 2015-07-06 19:56:05 +02:00
parent edeaaf23e4
commit 351914da9d
3 changed files with 2 additions and 3 deletions

View File

@ -291,7 +291,8 @@ void TEXTE_MODULE::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE draw_mode,
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)panel->GetDisplayOptions();
// shade text if high contrast mode is active
if( ( draw_mode & GR_ALLOW_HIGHCONTRAST ) && displ_opts->m_ContrastModeDisplay )
if( ( draw_mode & GR_ALLOW_HIGHCONTRAST ) && displ_opts &&
displ_opts->m_ContrastModeDisplay )
{
LAYER_ID curr_layer = ( (PCB_SCREEN*) panel->GetScreen() )->m_Active_Layer;

View File

@ -85,7 +85,6 @@ bool PCB_EDIT_FRAME::SetTrackSegmentWidth( TRACK* aTrackItem,
if( net )
{
new_width = net->GetViaSize();
new_drill = GetDesignSettings().GetCurrentViaDrill();
new_drill = net->GetViaDrillSize();
}
else

View File

@ -205,7 +205,6 @@ PNS_ITEM* PNS_ROUTER::syncPad( D_PAD* aPad )
solid->SetPos( c );
double orient = aPad->GetOrientation() / 10.0;
bool nonOrtho = false;
if( aPad->GetShape() == PAD_CIRCLE )
{