diff --git a/Src/xWorks/DictionaryExportService.cs b/Src/xWorks/DictionaryExportService.cs index 662a85b8a8..76af11d650 100644 --- a/Src/xWorks/DictionaryExportService.cs +++ b/Src/xWorks/DictionaryExportService.cs @@ -1,17 +1,17 @@ -// Copyright (c) 2016 SIL International +// Copyright (c) 2016-2026 SIL International // This software is licensed under the LGPL, version 2.1 or later // (http://www.gnu.org/licenses/lgpl-2.1.html) +using Newtonsoft.Json.Linq; +using SIL.Code; +using SIL.LCModel; +using SIL.LCModel.Utils; using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml; -using Newtonsoft.Json.Linq; -using SIL.Code; -using SIL.LCModel; -using SIL.LCModel.Utils; using XCore; namespace SIL.FieldWorks.XWorks @@ -133,14 +133,10 @@ public void ExportWordReversal(string filePath, string reversalWs, int[] entries if (progress != null) progress.Maximum = entriesToSave.Length; - // ReSharper disable once ObjectCreationAsStatement // (Re)loading the reversal configuration ensures its homograph settings are in the // cache's HomographConfiguration singleton during export. // https://github.com/sillsdev/FieldWorks/pull/939 - // REVIEW (Hasso) 2026.08: would revConfig.Load(m_cache); suffice? - new DictionaryConfigurationModel( - DictionaryConfigurationListener.GetCurrentConfiguration(m_propertyTable, - "ReversalIndex"), m_cache); + revConfig.Load(m_cache); string reversalFilePath = filePath.Split(new string[] { ".docx"}, StringSplitOptions.None)[0] + "-reversal-" + reversalWs + ".docx"; LcmWordGenerator.SavePublishedDocx(entriesToSave, revClerk, pubDecorator, int.MaxValue, revConfig, m_propertyTable,