From 8299de4798e96d0d3bdbb3d44a8154365282317f Mon Sep 17 00:00:00 2001 From: Damien Daspit Date: Wed, 22 Nov 2023 11:38:26 -0500 Subject: [PATCH] Fix crash when loading Thot alignment model --- src/SIL.Machine.Translation.Thot/ThotWordAlignmentModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SIL.Machine.Translation.Thot/ThotWordAlignmentModel.cs b/src/SIL.Machine.Translation.Thot/ThotWordAlignmentModel.cs index fe08ae93a..b10135bd5 100644 --- a/src/SIL.Machine.Translation.Thot/ThotWordAlignmentModel.cs +++ b/src/SIL.Machine.Translation.Thot/ThotWordAlignmentModel.cs @@ -96,7 +96,7 @@ public void Load(string prefFileName) if (!File.Exists(prefFileName + ".src")) throw new FileNotFoundException("The word alignment model configuration could not be found."); - SetHandle(Thot.OpenAlignmentModel(Type, _prefFileName)); + SetHandle(Thot.OpenAlignmentModel(Type, prefFileName)); _prefFileName = prefFileName; }