Possible protection from acessing deleted window data.
(Long shot for Sentry KICAD-MM.)
This commit is contained in:
parent
a4e8fa96d4
commit
bd60f38569
|
@ -247,7 +247,14 @@ public:
|
||||||
UpdateSymbolMsgPanelInfo();
|
UpdateSymbolMsgPanelInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsSymbolFromSchematic() const { return m_isSymbolFromSchematic; }
|
bool IsSymbolFromSchematic() const
|
||||||
|
{
|
||||||
|
// If we've already vetted closing this window, then we have no symbol anymore
|
||||||
|
if( m_isClosing )
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return m_isSymbolFromSchematic;
|
||||||
|
}
|
||||||
|
|
||||||
bool IsSymbolFromLegacyLibrary() const;
|
bool IsSymbolFromLegacyLibrary() const;
|
||||||
|
|
||||||
|
|
|
@ -494,6 +494,10 @@ void FOOTPRINT_EDIT_FRAME::ClearModify()
|
||||||
|
|
||||||
bool FOOTPRINT_EDIT_FRAME::IsCurrentFPFromBoard() const
|
bool FOOTPRINT_EDIT_FRAME::IsCurrentFPFromBoard() const
|
||||||
{
|
{
|
||||||
|
// If we've already vetted closing this window, then we have no FP anymore
|
||||||
|
if( m_isClosing )
|
||||||
|
return false;
|
||||||
|
|
||||||
FOOTPRINT* footprint = GetBoard()->GetFirstFootprint();
|
FOOTPRINT* footprint = GetBoard()->GetFirstFootprint();
|
||||||
|
|
||||||
return ( footprint && footprint->GetLink() != niluuid );
|
return ( footprint && footprint->GetLink() != niluuid );
|
||||||
|
|
Loading…
Reference in New Issue