Make sure that relpath gets a value

Even if we are not asking for normalized paths, we need to return a
value in the relpath.  This modifies 574bef2237

Fixes https://gitlab.com/kicad/code/kicad/issues/9363
This commit is contained in:
Seth Hillbrand 2021-10-11 09:11:42 -07:00
parent 4a3658027e
commit 759abb7928
1 changed files with 8 additions and 0 deletions

View File

@ -392,6 +392,10 @@ protected:
lastPath = NormalizePath( dlg.GetDirectory(), &Pgm().GetLocalEnvVariables(),
m_normalizeBasePath );
}
else
{
relPath = filePath;
}
SetValue( relPath );
@ -417,6 +421,10 @@ protected:
relPath = NormalizePath( filePath, &Pgm().GetLocalEnvVariables(),
m_normalizeBasePath );
}
else
{
relPath = filePath;
}
SetValue( relPath );