mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
PNS log viewer: fix loading via relative paths
This means you can run like this: ./qa/tools/pns/pns_debug_tool replay ../qa/data/pcbnew/pns_regressions/simple_shove1/pns.log
This commit is contained in:
parent
ce140faf2d
commit
c19a1718de
@ -347,7 +347,10 @@ void PNS_LOG_VIEWER_FRAME::LoadLogFile( const wxString& aFile )
|
||||
{
|
||||
std::unique_ptr<PNS_LOG_FILE> logFile( new PNS_LOG_FILE );
|
||||
|
||||
if( logFile->Load( wxFileName( aFile ), m_reporter.get() ) )
|
||||
wxFileName logFn( aFile );
|
||||
logFn.MakeAbsolute();
|
||||
|
||||
if( logFile->Load( logFn, m_reporter.get() ) )
|
||||
SetLogFile( logFile.release() );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user