eeschema: bug soved (see changelog). Doc update
This commit is contained in:
parent
405cb2ab0b
commit
dd58ea1efc
|
@ -5,6 +5,12 @@ Started 2007-June-11
|
||||||
Please add newer entries at the top, list the date and your name with
|
Please add newer entries at the top, list the date and your name with
|
||||||
email address.
|
email address.
|
||||||
|
|
||||||
|
2008-June-15 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
|
||||||
|
================================================================================
|
||||||
|
+eeschema:
|
||||||
|
Bug solved: Eeschema crashed when creating a new subsheet with the same
|
||||||
|
filename as an existing filename, if loading this existing file.
|
||||||
|
|
||||||
|
|
||||||
2008-June-11 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
|
2008-June-11 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
|
||||||
================================================================================
|
================================================================================
|
||||||
|
|
|
@ -574,10 +574,13 @@ bool DrawSheetStruct::ChangeFileName( WinEDA_SchematicFrame* aFrame, const wxStr
|
||||||
if( IsOK( NULL, msg ) )
|
if( IsOK( NULL, msg ) )
|
||||||
{
|
{
|
||||||
LoadFromFile = true;
|
LoadFromFile = true;
|
||||||
m_AssociatedScreen->m_RefCount--; //be careful with these
|
if ( m_AssociatedScreen ) // Can be NULL if loading a file when creating a new sheet
|
||||||
if( m_AssociatedScreen->m_RefCount == 0 )
|
{
|
||||||
SAFE_DELETE( m_AssociatedScreen );
|
m_AssociatedScreen->m_RefCount--; //be careful with these
|
||||||
m_AssociatedScreen = NULL; //will be created later
|
if( m_AssociatedScreen->m_RefCount == 0 )
|
||||||
|
SAFE_DELETE( m_AssociatedScreen );
|
||||||
|
m_AssociatedScreen = NULL; //will be created later
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue