Fix minor and very minor compil and Cppcheck warnings.
This commit is contained in:
parent
edeaaf23e4
commit
351914da9d
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue