Fix 2 Coverity warnings.

This commit is contained in:
jean-pierre charras 2016-09-26 19:29:00 +02:00
parent 1420a0179f
commit 89914fa9de
2 changed files with 3 additions and 1 deletions

View File

@ -544,7 +544,8 @@ void GERBVIEW_FRAME::OnUpdateSelectDCode( wxUpdateUIEvent& aEvent )
m_DCodeSelector->SetDCodeSelection( selected );
// Be sure the selection can be made. If no, set to
// a correct value
gerber->m_Selected_Tool = m_DCodeSelector->GetSelectedDCodeId();
if( gerber )
gerber->m_Selected_Tool = m_DCodeSelector->GetSelectedDCodeId();
}
}

View File

@ -395,6 +395,7 @@ public:
m_penSize = 1;
m_sheetNumber = 1;
m_sheetCount = 1;
m_sheetLayer = 0;
m_titleBlock = NULL;
m_paperFormat = NULL;
m_sheetFullName = NULL;