Revert absolute-path asserts and fix off-by-one bug.

Fixes: lp:1767582
* https://bugs.launchpad.net/kicad/+bug/1767582
This commit is contained in:
Jeff Young
2018-09-15 22:36:09 +01:00
parent ae5183f614
commit e45afdb912
3 changed files with 8 additions and 7 deletions
+1 -3
View File
@@ -78,9 +78,7 @@ void PROJECT::SetProjectFullName( const wxString& aFullPathAndName )
m_project_name = aFullPathAndName;
// 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.IsAbsolute() );
wxASSERT( m_project_name.GetExt() == ProjectFileExtension );