Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 755039bb authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

fix handling paths in engine and EM form

parent b153c98d
No related branches found
No related tags found
No related merge requests found
......@@ -214,7 +214,7 @@ Public Class ElectricMotorForm
ElectricMotorFileBrowser.UpdateHistory(file)
Text = GetFilenameWithoutPath(file, True)
LbStatus.Text = ""
_emFile = file
_emFile = Path.GetFullPath(file)
Activate()
_changed = False
......
......@@ -235,7 +235,7 @@ Public Class EngineForm
End Select
End If
Dim basePath As String = Path.GetDirectoryName(file)
Dim basePath As String = path.GetDirectoryName(Path.GetFullPath(file))
TbName.Text = engine.Model
TbDispl.Text = (engine.Displacement.Value() * 1000.0 * 1000).ToGUIFormat()
TbInertia.Text = engine.Inertia.ToGUIFormat()
......@@ -323,7 +323,7 @@ Public Class EngineForm
EngineFileBrowser.UpdateHistory(file)
Text = GetFilenameWithoutPath(file, True)
LbStatus.Text = ""
_engFile = file
_engFile = Path.GetFullPath(file)
Activate()
_changed = False
......@@ -410,8 +410,9 @@ Public Class EngineForm
If AutoSendTo Then
If VectoJobForm.Visible Then
If UCase(FileRepl(VectoJobForm.TbENG.Text, JobDir)) <> UCase(file) Then _
VectoJobForm.TbENG.Text = GetFilenameWithoutDirectory(file, JobDir)
If UCase(FileRepl(VectoJobForm.TbENG.Text, JobDir)) <> UCase(file) Then
VectoJobForm.TbENG.Text = GetRelativePath(file, JobDir)
end if
VectoJobForm.UpdatePic()
End If
End If
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment