diff --git a/Src/xWorks/DictionaryConfigurationController.cs b/Src/xWorks/DictionaryConfigurationController.cs index d0d9a0f224..6639bc1373 100644 --- a/Src/xWorks/DictionaryConfigurationController.cs +++ b/Src/xWorks/DictionaryConfigurationController.cs @@ -520,10 +520,6 @@ public static void SetConfigureHomographParameters(DictionaryConfigurationModel var senseNode = mainEntryNode.Children.Where(prop => prop.Label == senseType).FirstOrDefault(); if (senseNode == null) return; var senseOptions = (DictionaryNodeSenseOptions)senseNode.DictionaryNodeOptions; - if (String.IsNullOrEmpty(senseOptions.NumberingStyle)) - { - senseOptions.NumberingStyle = null; - } cacheHc.ksSenseNumberStyle = senseOptions.NumberingStyle; //SubSense Node var subSenseNode = senseNode.Children.Where(prop => prop.Label == "Subsenses").FirstOrDefault(); diff --git a/Src/xWorks/DictionaryDetailsView/SenseOptionsView.cs b/Src/xWorks/DictionaryDetailsView/SenseOptionsView.cs index ca937629a2..3a9300c717 100644 --- a/Src/xWorks/DictionaryDetailsView/SenseOptionsView.cs +++ b/Src/xWorks/DictionaryDetailsView/SenseOptionsView.cs @@ -64,7 +64,13 @@ internal List NumberingStyles public string NumberingStyle { - get{ return ((NumberingStyleComboItem)dropDownNumberingStyle.SelectedItem).FormatString; } + get + { + // Return null if string is empty, because returning an empty string for reversal numbers + // also forces sense numbers not to be displayed. Null doesn't cause the same problem. + var formatString = ((NumberingStyleComboItem)dropDownNumberingStyle.SelectedItem).FormatString; + return string.IsNullOrEmpty(formatString) ? null : formatString; + } set { if (string.IsNullOrEmpty(value))