Commit dd58ea1e authored by charras's avatar charras

eeschema: bug soved (see changelog). Doc update

parent 405cb2ab
......@@ -5,6 +5,12 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
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>
================================================================================
......@@ -15,10 +21,10 @@ email address.
- Only one file for application
- Is standart (The old html format used a zipped archive, not standart)
- the doc tree is less complex (see doc/help/fr or doc/help/en for the new tree).
If a localized doc file is not found, the english version is automatically loaded instead.
No need to copy the same pdf file in subdirectory.
2008-June-06 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 ) )
{
LoadFromFile = true;
m_AssociatedScreen->m_RefCount--; //be careful with these
if( m_AssociatedScreen->m_RefCount == 0 )
SAFE_DELETE( m_AssociatedScreen );
m_AssociatedScreen = NULL; //will be created later
if ( m_AssociatedScreen ) // Can be NULL if loading a file when creating a new sheet
{
m_AssociatedScreen->m_RefCount--; //be careful with these
if( m_AssociatedScreen->m_RefCount == 0 )
SAFE_DELETE( m_AssociatedScreen );
m_AssociatedScreen = NULL; //will be created later
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment