Browse Source

Remove asserts for absolute paths.

You can, for instance, specify relative paths via the command
line.

Fixes: lp:1767582
* https://bugs.launchpad.net/kicad/+bug/1767582
pull/13/head
Jeff Young 7 years ago
parent
commit
872e1e6532
  1. 4
      common/project.cpp
  2. 3
      eeschema/files-io.cpp

4
common/project.cpp

@ -78,7 +78,9 @@ void PROJECT::SetProjectFullName( const wxString& aFullPathAndName )
m_project_name = aFullPathAndName;
wxASSERT( m_project_name.IsAbsolute() );
// There's no guarantee that this path is absolute. For instance, a relative
// path might have been passed via the command line.
// wxASSERT( m_project_name.IsAbsolute() );
wxASSERT( m_project_name.GetExt() == ProjectFileExtension );

3
eeschema/files-io.cpp

@ -201,9 +201,6 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
wxString fullFileName( aFileSet[0] );
// We insist on caller sending us an absolute path, if it does not, we say it's a bug.
wxASSERT_MSG( wxFileName( fullFileName ).IsAbsolute(), wxT( "Path is not absolute!" ) );
if( !LockFile( fullFileName ) )
{
wxString msg = wxString::Format( _( "Schematic file \"%s\" is already open." ),

Loading…
Cancel
Save