Fix error with empty sheet paths.
This commit is contained in:
parent
20bb3b194f
commit
c1ecb4257d
|
@ -227,8 +227,11 @@ KIID_PATH SCH_SHEET_PATH::PathWithoutRootUuid() const
|
|||
wxString SCH_SHEET_PATH::PathHumanReadable( bool aUseShortRootName ) const
|
||||
{
|
||||
wxString s;
|
||||
wxString fileName;
|
||||
|
||||
if( !empty() && at( 0 )->GetScreen() )
|
||||
fileName = at( 0 )->GetScreen()->GetFileName();
|
||||
|
||||
wxString fileName = at( 0 )->GetScreen()->GetFileName();
|
||||
wxFileName fn = fileName;
|
||||
|
||||
if( aUseShortRootName )
|
||||
|
|
Loading…
Reference in New Issue