Fix 2 Coverity warnings.
This commit is contained in:
parent
1420a0179f
commit
89914fa9de
|
@ -544,7 +544,8 @@ void GERBVIEW_FRAME::OnUpdateSelectDCode( wxUpdateUIEvent& aEvent )
|
||||||
m_DCodeSelector->SetDCodeSelection( selected );
|
m_DCodeSelector->SetDCodeSelection( selected );
|
||||||
// Be sure the selection can be made. If no, set to
|
// Be sure the selection can be made. If no, set to
|
||||||
// a correct value
|
// a correct value
|
||||||
gerber->m_Selected_Tool = m_DCodeSelector->GetSelectedDCodeId();
|
if( gerber )
|
||||||
|
gerber->m_Selected_Tool = m_DCodeSelector->GetSelectedDCodeId();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -395,6 +395,7 @@ public:
|
||||||
m_penSize = 1;
|
m_penSize = 1;
|
||||||
m_sheetNumber = 1;
|
m_sheetNumber = 1;
|
||||||
m_sheetCount = 1;
|
m_sheetCount = 1;
|
||||||
|
m_sheetLayer = 0;
|
||||||
m_titleBlock = NULL;
|
m_titleBlock = NULL;
|
||||||
m_paperFormat = NULL;
|
m_paperFormat = NULL;
|
||||||
m_sheetFullName = NULL;
|
m_sheetFullName = NULL;
|
||||||
|
|
Loading…
Reference in New Issue